Skip to content

Commit

Permalink
BUGFIX: Disable modifying personal workspaces in workspace list
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Dec 19, 2024
1 parent 4678c5d commit 49d23d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ prototype(Neos.Workspace.Ui:Component.WorkspaceTableRow) < prototype(Neos.Fusion
attributes.hx-target='#popover-container'
attributes.hx-swap='innerHTML'
attributes.hx-on--after-request={'document.getElementById("' + private.editWorkspacePopoverId + '").showPopover()'}
attributes.disabled={props.workspaceListItem.permissions.manage == false}
attributes.disabled={props.workspaceListItem.personal || props.workspaceListItem.permissions.manage == false}
/>
<Neos.Workspace.Ui:Component.Button
isDanger
title={private.i18n.id('workspaces.deleteWorkspace').arguments([props.workspaceListItem.title])}
icon="trash-alt icon-white"
attributes.disabled={props.workspaceListItem.pendingChanges.total > 0 || props.workspaceListItem.permissions.manage == false}
attributes.disabled={props.workspaceListItem.personal || props.workspaceListItem.pendingChanges.total > 0 || props.workspaceListItem.permissions.manage == false}
attributes.hx-get={private.deleteWorkspaceUri}
attributes.hx-target='#popover-container'
attributes.hx-swap='innerHTML'
Expand Down

0 comments on commit 49d23d4

Please sign in to comment.