From e2a07f711c5f640ebd65eba88e1c2f10aaf0fc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauro=20Ferr=C3=A3o?= Date: Thu, 7 Mar 2024 08:32:19 +0000 Subject: [PATCH] Remove canvas region share option (#2407) relates to xibosignage/xibo#2399 --- ui/src/layout-editor/main.js | 11 ----------- ui/src/templates/context-menu.hbs | 6 ------ views/common.twig | 1 - 3 files changed, 18 deletions(-) diff --git a/ui/src/layout-editor/main.js b/ui/src/layout-editor/main.js index 1fa958fa96..b51317a6fb 100644 --- a/ui/src/layout-editor/main.js +++ b/ui/src/layout-editor/main.js @@ -3418,17 +3418,6 @@ lD.openContextMenu = function(obj, position = {x: 0, y: 0}) { const canvasWidget = lD.getObjectByTypeAndId('widget', objAuxId, 'canvas'); canvasWidget.editPropertyForm('Permissions'); - } else if ( - property === 'PermissionsCanvas' && - ( - layoutObject.type === 'element' || - layoutObject.type === 'element-group' - ) - ) { - // Call edit for canvas widget instead - const canvas = - lD.getObjectByTypeAndId('canvas'); - canvas.editPropertyForm('Permissions'); } else { // Call normal edit form layoutObject.editPropertyForm( diff --git a/ui/src/templates/context-menu.hbs b/ui/src/templates/context-menu.hbs index 7c29e80982..c13b848a59 100644 --- a/ui/src/templates/context-menu.hbs +++ b/ui/src/templates/context-menu.hbs @@ -85,12 +85,6 @@ {{trans.editWidgetPermissions}} {{/if}} - - {{#if canvas.isPermissionsModifiable}} -
- {{trans.editCanvasPermissions}} -
- {{/if}} {{else}} {{#if isPermissionsModifiable}}
diff --git a/views/common.twig b/views/common.twig index 13a1dfb78e..f736ae2fb6 100644 --- a/views/common.twig +++ b/views/common.twig @@ -457,7 +457,6 @@ editPermissions: "{{ "Edit Sharing" |trans }}", editRegionPermissions: "{{ "Edit Region Sharing" |trans }}", editWidgetPermissions: "{{ "Edit Widget Sharing" |trans }}", - editCanvasPermissions: "{{ "Edit Canvas Sharing" |trans }}", editPlaylist: "{{ "Edit Playlist" |trans }}", options: "{% trans "Options" %}", moveLeft: "{{ "Move one step left" |trans }}",