mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
prevent link name to select row
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<div class="line">
|
||||
<span *ngIf="isFile" (click)="showPreview()" class="link">
|
||||
<span *ngIf="isFile" (click)="showPreview($event)" class="link">
|
||||
{{ name$ | async }}
|
||||
</span>
|
||||
<span *ngIf="!isFile" (click)="navigate()" class="bold link">
|
||||
<span *ngIf="!isFile" (click)="navigate($event)" class="bold link">
|
||||
{{ name$ | async }}
|
||||
</span>
|
||||
<span>{{ title$ | async }}</span>
|
||||
|
@@ -121,11 +121,13 @@ export class SearchResultsRowComponent implements OnInit, OnDestroy {
|
||||
return this.node.entry.isFile;
|
||||
}
|
||||
|
||||
showPreview() {
|
||||
showPreview(event) {
|
||||
event.stopPropagation();
|
||||
this.store.dispatch(new ViewFileAction(this.node));
|
||||
}
|
||||
|
||||
navigate() {
|
||||
navigate(event) {
|
||||
event.stopPropagation();
|
||||
this.store.dispatch(new NavigateToFolder(this.node));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user