Skip to content

Commit

Permalink
UITEN-274: Use Save & close button label stripes-component translatio…
Browse files Browse the repository at this point in the history
…n key (#388)
  • Loading branch information
UladzislauKutarkin authored Mar 25, 2024
1 parent 76ed104 commit 497f446
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 8.2.0 (IN PROGRESS)

* [UITEN-274](https://folio-org.atlassian.net/browse/UITEN-274) Use Save & close button label stripes-component translation key.

## [8.1.0](https://github.com/folio-org/ui-tenant-settings/tree/v8.1.0)(2024-03-19)
[Full Changelog](https://github.com/folio-org/ui-tenant-settings/compare/v8.0.0...v8.1.0)

Expand Down
2 changes: 1 addition & 1 deletion src/settings/ServicePoints/ServicePointForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const ServicePointForm = ({
buttonStyle="primary mega"
disabled={(pristine || submitting)}
>
<FormattedMessage id="ui-tenant-settings.settings.general.saveAndClose" />
<FormattedMessage id="stripes-components.saveAndClose" />
</Button>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('ServicePointFormContainer', () => {

textboxes.forEach((el) => expect(screen.getByRole('textbox', { name: el })).toHaveValue('new value'));

userEvent.click(screen.getByRole('button', { name: /settings.general.saveAndClose/ }));
userEvent.click(screen.getByRole('button', { name: /saveAndClose/ }));
});

it('should render ServicePointFormContainer select with changed options', () => {
Expand Down
1 change: 0 additions & 1 deletion translations/ui-tenant-settings/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@


"settings.general.label": "General",
"settings.general.saveAndClose": "Save & close",

"settings.index.paneTitle": "Tenant",
"settings.bindings.label": "Key bindings",
Expand Down

0 comments on commit 497f446

Please sign in to comment.