diff --git a/src/app/components/files/files.component.html b/src/app/components/files/files.component.html
index 947e8da3b..033540933 100644
--- a/src/app/components/files/files.component.html
+++ b/src/app/components/files/files.component.html
@@ -6,14 +6,17 @@
(navigate)="onBreadcrumbNavigate($event)">
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- more_vert
-
-
-
-
- star
- star_border
- {{ 'APP.ACTIONS.FAVORITE' | translate }}
-
-
-
- content_copy
- {{ 'APP.ACTIONS.COPY' | translate }}
-
-
-
- library_books
- {{ 'APP.ACTIONS.MOVE' | translate }}
-
-
-
- delete
- {{ 'APP.ACTIONS.DELETE' | translate }}
-
-
-
- history
- {{ 'APP.ACTIONS.VERSIONS' | translate }}
-
-
diff --git a/src/app/components/files/files.component.spec.ts b/src/app/components/files/files.component.spec.ts
index 07ddab203..678321691 100644
--- a/src/app/components/files/files.component.spec.ts
+++ b/src/app/components/files/files.component.spec.ts
@@ -33,7 +33,6 @@ import {
} from '@alfresco/adf-core';
import { DocumentListComponent } from '@alfresco/adf-content-services';
import { ContentManagementService } from '../../common/services/content-management.service';
-import { BrowsingFilesService } from '../../common/services/browsing-files.service';
import { NodeActionsService } from '../../common/services/node-actions.service';
import { FilesComponent } from './files.component';
import { AppTestingModule } from '../../testing/app-testing.module';
@@ -48,7 +47,6 @@ describe('FilesComponent', () => {
let contentManagementService: ContentManagementService;
let uploadService: UploadService;
let router: Router;
- let browsingFilesService: BrowsingFilesService;
let nodeActionsService: NodeActionsService;
let contentApi: ContentApiService;
@@ -86,7 +84,6 @@ describe('FilesComponent', () => {
contentManagementService = TestBed.get(ContentManagementService);
uploadService = TestBed.get(UploadService);
router = TestBed.get(Router);
- browsingFilesService = TestBed.get(BrowsingFilesService);
nodeActionsService = TestBed.get(NodeActionsService);
contentApi = TestBed.get(ContentApiService);
});
@@ -146,17 +143,6 @@ describe('FilesComponent', () => {
expect(component.fetchNodes).toHaveBeenCalled();
});
- it('emits onChangeParent event', () => {
- spyOn(contentApi, 'getNode').and.returnValue(Observable.of({ entry: node }));
- spyOn(component, 'fetchNodes').and.returnValue(Observable.of(page));
- spyOn(browsingFilesService.onChangeParent, 'next').and.callFake((val) => val);
-
- fixture.detectChanges();
-
- expect(browsingFilesService.onChangeParent.next)
- .toHaveBeenCalledWith(node);
- });
-
it('if should navigate to parent if node is not a folder', () => {
node.isFolder = false;
node.parentId = 'parent-id';
diff --git a/src/app/components/files/files.component.ts b/src/app/components/files/files.component.ts
index ee74f4092..1b57e5fdb 100644
--- a/src/app/components/files/files.component.ts
+++ b/src/app/components/files/files.component.ts
@@ -29,7 +29,6 @@ import { ActivatedRoute, Params, Router } from '@angular/router';
import { Store } from '@ngrx/store';
import { MinimalNodeEntity, MinimalNodeEntryEntity, NodePaging, PathElement, PathElementEntity } from 'alfresco-js-api';
import { Observable } from 'rxjs/Rx';
-import { BrowsingFilesService } from '../../common/services/browsing-files.service';
import { ContentManagementService } from '../../common/services/content-management.service';
import { NodeActionsService } from '../../common/services/node-actions.service';
import { NodePermissionService } from '../../common/services/node-permission.service';
@@ -37,6 +36,7 @@ import { AppStore } from '../../store/states/app.state';
import { PageComponent } from '../page.component';
import { ContentApiService } from '../../services/content-api.service';
import { ExtensionService } from '../../extensions/extension.service';
+import { SetCurrentFolderAction } from '../../store/actions';
@Component({
templateUrl: './files.component.html'
@@ -54,7 +54,6 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
private nodeActionsService: NodeActionsService,
private uploadService: UploadService,
private contentManagementService: ContentManagementService,
- private browsingFilesService: BrowsingFilesService,
public permission: NodePermissionService,
extensions: ExtensionService) {
super(store, extensions);
@@ -103,7 +102,7 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
ngOnDestroy() {
super.ngOnDestroy();
- this.browsingFilesService.onChangeParent.next(null);
+ this.store.dispatch(new SetCurrentFolderAction(null));
}
fetchNodes(parentNodeId?: string): Observable