mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
optimise upload service injections
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
*/
|
||||
|
||||
import { ContentApiService, PageComponent } from '@alfresco/aca-shared';
|
||||
import { UploadService } from '@alfresco/adf-content-services';
|
||||
import { MinimalNodeEntity, MinimalNodeEntryEntity, PathElementEntity, PathInfo } from '@alfresco/js-api';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
@@ -36,7 +35,7 @@ import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||
export class FavoritesComponent extends PageComponent implements OnInit {
|
||||
columns: DocumentListPresetRef[] = [];
|
||||
|
||||
constructor(private router: Router, private contentApi: ContentApiService, private uploadService: UploadService) {
|
||||
constructor(private router: Router, private contentApi: ContentApiService) {
|
||||
super();
|
||||
}
|
||||
|
||||
|
@@ -30,7 +30,7 @@ import { NodeActionsService } from '../../services/node-actions.service';
|
||||
import { ContentApiService, PageComponent } from '@alfresco/aca-shared';
|
||||
import { SetCurrentFolderAction, isAdmin, UploadFileVersionAction, showLoaderSelector } from '@alfresco/aca-shared/store';
|
||||
import { debounceTime, takeUntil } from 'rxjs/operators';
|
||||
import { FilterSearch, ShareDataRow, UploadService, FileUploadEvent } from '@alfresco/adf-content-services';
|
||||
import { FilterSearch, ShareDataRow, FileUploadEvent } from '@alfresco/adf-content-services';
|
||||
import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||
|
||||
@Component({
|
||||
@@ -51,8 +51,7 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
|
||||
private router: Router,
|
||||
private route: ActivatedRoute,
|
||||
private contentApi: ContentApiService,
|
||||
private nodeActionsService: NodeActionsService,
|
||||
private uploadService: UploadService
|
||||
private nodeActionsService: NodeActionsService
|
||||
) {
|
||||
super();
|
||||
}
|
||||
|
@@ -24,7 +24,6 @@
|
||||
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { MinimalNodeEntity } from '@alfresco/js-api';
|
||||
import { UploadService } from '@alfresco/adf-content-services';
|
||||
import { debounceTime } from 'rxjs/operators';
|
||||
import { Router } from '@angular/router';
|
||||
import { PageComponent } from '@alfresco/aca-shared';
|
||||
@@ -36,7 +35,7 @@ import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||
export class RecentFilesComponent extends PageComponent implements OnInit {
|
||||
columns: DocumentListPresetRef[] = [];
|
||||
|
||||
constructor(private uploadService: UploadService, private router: Router) {
|
||||
constructor(private router: Router) {
|
||||
super();
|
||||
}
|
||||
|
||||
|
@@ -24,7 +24,6 @@
|
||||
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { debounceTime } from 'rxjs/operators';
|
||||
import { UploadService } from '@alfresco/adf-content-services';
|
||||
import { Router } from '@angular/router';
|
||||
import { MinimalNodeEntity } from '@alfresco/js-api';
|
||||
import { AppHookService, PageComponent } from '@alfresco/aca-shared';
|
||||
@@ -35,7 +34,7 @@ import { DocumentListPresetRef } from '@alfresco/adf-extensions';
|
||||
export class SharedFilesComponent extends PageComponent implements OnInit {
|
||||
columns: DocumentListPresetRef[] = [];
|
||||
|
||||
constructor(private appHookService: AppHookService, private uploadService: UploadService, private router: Router) {
|
||||
constructor(private appHookService: AppHookService, private router: Router) {
|
||||
super();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user