[ACA-1473] fixes for navigation to searched folder (#429)

* search effects

* "view folder" action

* folder navigation actions and effects

* navigate to folder on double-click (search results)

* update tests

* fix tests
This commit is contained in:
Denys Vuika
2018-06-17 19:12:08 +01:00
committed by GitHub
parent e2eed9b71c
commit 1c4f658017
12 changed files with 196 additions and 57 deletions

View File

@@ -31,7 +31,7 @@ import { UserPreferencesService } from '@alfresco/adf-core';
import { PageComponent } from '../page.component';
import { Store } from '@ngrx/store';
import { AppStore } from '../../store/states/app.state';
import { NavigateToLocationAction } from '../../store/actions';
import { NavigateToFolder } from '../../store/actions';
@Component({
selector: 'app-search',
@@ -136,7 +136,7 @@ export class SearchComponent extends PageComponent implements OnInit {
onNodeDoubleClick(node: MinimalNodeEntity) {
if (node && node.entry) {
if (node.entry.isFolder) {
this.store.dispatch(new NavigateToLocationAction(node.entry));
this.store.dispatch(new NavigateToFolder(node));
return;
}