[Edit Mode] Disallow context menu actions on tree items during edit mode. #277

This commit is contained in:
Henry
2015-11-25 14:44:31 -08:00
parent 75d4be290c
commit 9eb8158c4e
3 changed files with 24 additions and 1 deletions

View File

@@ -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) {