Skip to content

Commit

Permalink
rename to ui-eholdings.package-title.execute
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro-Melnyshyn committed Oct 28, 2024
1 parent fc04d8d commit 12b4450
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/components/package/selection-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const SelectionStatus = ({
>
<SelectionStatusMessage model={model} />
<br />
<IfPermission perm="ui-eholdings.package-title.manage">
<IfPermission perm="ui-eholdings.package-title.execute">
<SelectionStatusButton
model={model}
onAddToHoldings={onAddToHoldings}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const EditHoldingStatus = ({
const renderToggleSelectionStatusButton = () => {
if ((!resourceSelected && !isSelectInFlight) || (!model.isSelected && isSelectInFlight)) {
return (
<IfPermission perm="ui-eholdings.package-title.manage">
<IfPermission perm="ui-eholdings.package-title.execute">
<Button
buttonStyle="primary"
onClick={handleToggleResourceHoldings}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const ResourceEditCustomTitle = ({
};

const getActionMenu = () => {
const hasSelectPermission = stripes.hasPerm('ui-eholdings.package-title.manage');
const hasSelectPermission = stripes.hasPerm('ui-eholdings.package-title.execute');

if (!hasSelectPermission || !resourceSelected) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const ResourceEditManagedTitle = ({
};

const getActionMenu = () => {
const hasSelectPermission = stripes.hasPerm('ui-eholdings.package-title.manage');
const hasSelectPermission = stripes.hasPerm('ui-eholdings.package-title.execute');

if (!hasSelectPermission) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion src/constants/permissionNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export const RECORDS_EDIT_PERMISSION = 'ui-eholdings.records.edit';

export const TITLES_PACKAGES_CREATE_DELETE_PERMISSION = 'ui-eholdings.titles-packages.manage';

export const PACKAGE_TITLE_SELECT_UNSELECT_PERMISSION = 'ui-eholdings.package-title.manage';
export const PACKAGE_TITLE_SELECT_UNSELECT_PERMISSION = 'ui-eholdings.package-title.execute';

0 comments on commit 12b4450

Please sign in to comment.