Skip to content

Commit

Permalink
Revert "STSMACOM-870: Rename the ui-notes.item.assign-unassign perm…
Browse files Browse the repository at this point in the history
…ission. …"

This reverts commit 89b7299.
  • Loading branch information
Dmytro-Melnyshyn authored Oct 30, 2024
1 parent 89b7299 commit 398b865
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Improve confirmation modal footer for `ControlledVocab` component. Refs STSMACOM-863.
* Add the `endDateInputRef` prop to `DateRangeFilter` to access the end date element. Refs STSMACOM-859.
* Remove unnecessary `aria-rowindex` in `ItemView` and `ItemEdit` components. Fixes STSMACOM-871.
* Rename the `ui-notes.item.assign-unassign` permission. Refs STSMACOM-870.

## [9.2.0](https://github.com/folio-org/stripes-smart-components/tree/v9.2.0) (2024-10-11)
[Full Changelog](https://github.com/folio-org/stripes-smart-components/compare/v9.1.3...v9.2.0)
Expand Down
4 changes: 2 additions & 2 deletions lib/Notes/NoteViewPage/components/NoteView/NoteView.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default class NoteView extends Component {
} = this.props;


const canAssignUnassign = stripes.hasPerm('ui-notes.item.assign-unassign.execute');
const canAssignUnassign = stripes.hasPerm('ui-notes.item.assign-unassign');
const canDelete = stripes.hasPerm('ui-notes.item.delete');
const canEdit = stripes.hasPerm('ui-notes.item.edit');

Expand All @@ -162,7 +162,7 @@ export default class NoteView extends Component {
<>
{
canUnassign &&
<IfPermission perm="ui-notes.item.assign-unassign.execute">
<IfPermission perm="ui-notes.item.assign-unassign">
<Button
id="note-unassign-button"
buttonStyle="dropdownItem"
Expand Down
2 changes: 1 addition & 1 deletion lib/Notes/components/NotesAccordion/NotesAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class NotesAccordion extends Component {
return (
<>
{!hideAssignButton && (
<IfPermission perm="ui-notes.item.assign-unassign.execute">
<IfPermission perm="ui-notes.item.assign-unassign">
<Button
id="note-assign-button"
onClick={this.onAssignButtonClick}
Expand Down

0 comments on commit 398b865

Please sign in to comment.