[ACA-1574] Search - DL single click for folders (#520)

This commit is contained in:
Cilibiu Bogdan
2018-07-19 16:03:07 +03:00
committed by Denys Vuika
parent 1ee92fd6bc
commit 43a71aa1c8
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
<div class="line">
<span *ngIf="isFile" (click)="showPreview()" class="link"> {{ name }} </span>
<span *ngIf="!isFile" class="bold"> {{ name }} </span>
<span *ngIf="!isFile" (click)="navigate()" class="bold link"> {{ name }} </span>
<span *ngIf="hasTitle"> ( {{ title }} ) </span>
</div>

View File

@@ -28,6 +28,7 @@ import { MinimalNodeEntity } from 'alfresco-js-api';
import { ViewFileAction } from '../../../store/actions';
import { Store } from '@ngrx/store';
import { AppStore } from '../../../store/states/app.state';
import { NavigateToFolder } from '../../../store/actions';
@Component({
selector: 'aca-search-results-row',
@@ -94,6 +95,10 @@ export class SearchResultsRowComponent implements OnInit {
);
}
navigate() {
this.store.dispatch(new NavigateToFolder(this.node));
}
private getValue(path) {
return path
.replace('["', '.')