From 12b44504eb0e9be2ecaacfa94ce28a2d8fba097a Mon Sep 17 00:00:00 2001 From: Dmytro Melnyshyn Date: Mon, 28 Oct 2024 17:21:49 +0200 Subject: [PATCH] rename to ui-eholdings.package-title.execute --- package.json | 2 +- src/components/package/edit-managed/managed-package-edit.js | 2 +- src/components/package/selection-status.js | 2 +- .../components/edit/holding-status/edit-holding-status.js | 2 +- .../resource/edit-custom-title/resource-edit-custom-title.js | 2 +- .../resource/edit-managed-title/resource-edit-managed-title.js | 2 +- src/constants/permissionNames.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index d576d950f..82829553b 100644 --- a/package.json +++ b/package.json @@ -222,7 +222,7 @@ ] }, { - "permissionName": "ui-eholdings.package-title.manage", + "permissionName": "ui-eholdings.package-title.execute", "displayName": "eHoldings: Can select/unselect packages and titles to/from your holdings", "visible": true, "subPermissions": [ diff --git a/src/components/package/edit-managed/managed-package-edit.js b/src/components/package/edit-managed/managed-package-edit.js index abcb0b6ca..fc61997bd 100644 --- a/src/components/package/edit-managed/managed-package-edit.js +++ b/src/components/package/edit-managed/managed-package-edit.js @@ -202,7 +202,7 @@ const ManagedPackageEdit = ({ const getActionMenu = () => { const isAddButtonNeeded = !packageSelected || model.isPartiallySelected; - const hasSelectPermission = stripes.hasPerm('ui-eholdings.package-title.manage'); + const hasSelectPermission = stripes.hasPerm('ui-eholdings.package-title.execute'); if (!hasSelectPermission) return null; diff --git a/src/components/package/selection-status.js b/src/components/package/selection-status.js index e3c861ef6..e4209d7d2 100644 --- a/src/components/package/selection-status.js +++ b/src/components/package/selection-status.js @@ -24,7 +24,7 @@ const SelectionStatus = ({ >
- + { if ((!resourceSelected && !isSelectInFlight) || (!model.isSelected && isSelectInFlight)) { return ( - +