mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1574] Search - DL single click for folders (#520)
This commit is contained in:
committed by
Denys Vuika
parent
1ee92fd6bc
commit
43a71aa1c8
@@ -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>
|
||||
|
||||
|
@@ -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('["', '.')
|
||||
|
Reference in New Issue
Block a user