mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Suppress browser context menu for document list
- preparing document list for own context menu
This commit is contained in:
@@ -41,7 +41,10 @@ declare let __moduleName: string;
|
||||
selector: 'alfresco-document-list',
|
||||
styleUrls: ['./document-list.css'],
|
||||
templateUrl: './document-list.html',
|
||||
providers: [AlfrescoService]
|
||||
providers: [AlfrescoService],
|
||||
host: {
|
||||
'(contextmenu)': 'onShowContextMenu($event)'
|
||||
}
|
||||
})
|
||||
export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit, OnChanges {
|
||||
|
||||
@@ -251,6 +254,12 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit,
|
||||
}
|
||||
}
|
||||
|
||||
onShowContextMenu(e?: Event) {
|
||||
if (e) {
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
private performNavigation(node: MinimalNodeEntity) {
|
||||
if (node && node.entry && node.entry.isFolder) {
|
||||
let path = this.getNodePath(node);
|
||||
|
Reference in New Issue
Block a user