Skip to content

Commit

Permalink
Remove canvas region share option (#2407)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao authored Mar 7, 2024
1 parent 46e37b6 commit e2a07f7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
11 changes: 0 additions & 11 deletions ui/src/layout-editor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 0 additions & 6 deletions ui/src/templates/context-menu.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@
<i class="tool-icon-permissions"></i><span>{{trans.editWidgetPermissions}}</span>
</div>
{{/if}}

{{#if canvas.isPermissionsModifiable}}
<div class="context-menu-btn permissionsBtn" data-title="{{trans.editCanvasPermissions}}" data-property="PermissionsCanvas" data-toggle="tooltip" data-container=".context-menu" data-placement="bottom">
<i class="tool-icon-permissions"></i><span>{{trans.editCanvasPermissions}}</span>
</div>
{{/if}}
{{else}}
{{#if isPermissionsModifiable}}
<div class="context-menu-btn permissionsBtn" data-title="{{trans.editPermissions}}" data-property="Permissions" data-toggle="tooltip" data-container=".context-menu" data-placement="bottom">
Expand Down
1 change: 0 additions & 1 deletion views/common.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}",
Expand Down

0 comments on commit e2a07f7

Please sign in to comment.