[Edit Mode] Disallow context menu actions on tree items during edit mode. #277
This commit is contained in:
@@ -55,12 +55,14 @@ define(
|
||||
$rootScope,
|
||||
popupService,
|
||||
agentService,
|
||||
navigationService,
|
||||
actionContext
|
||||
) {
|
||||
this.$compile = $compile;
|
||||
this.agentService = agentService;
|
||||
this.actionContext = actionContext;
|
||||
this.popupService = popupService;
|
||||
this.navigationService = navigationService;
|
||||
this.getDocument = function () { return $document; };
|
||||
this.getRootScope = function () { return $rootScope; };
|
||||
}
|
||||
@@ -82,6 +84,10 @@ define(
|
||||
menu,
|
||||
popup;
|
||||
|
||||
if (this.navigationService.getNavigation() && this.navigationService.getNavigation().hasCapability('editor')){
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove the context menu
|
||||
function dismiss() {
|
||||
if (popup) {
|
||||
|
||||
Reference in New Issue
Block a user