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