Skip to content

Commit b348e72

Browse files
add saveButtonLabelText to SaveBackCancelButtons (#418)
1 parent 1b8eb37 commit b348e72

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Changelog
2+
## [32.6.2] - 2026-05-15
3+
- add optional saveButtonLabelText parameter to SaveBackCancelButtons to change text on Save button. Defaults to Save.
24
## [32.6.1] - 2026-04-28
35
- Show more fields in address search results
46
## [32.6.0] - 2026-04-27

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linn-it/linn-form-components-library",
3-
"version": "32.6.1",
3+
"version": "32.6.2",
44
"private": false,
55
"repository": {
66
"type": "git",

src/components/SaveBackCancelButtons.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ function SaveBackCancelButtons({
99
saveDisabled = false,
1010
backClick,
1111
showBackButton = true,
12-
editStatus = null
12+
editStatus = null,
13+
saveButtonLabelText = 'Save'
1314
}) {
1415
const editing = editStatus === 'edit' || editStatus === 'create';
1516

@@ -40,7 +41,7 @@ function SaveBackCancelButtons({
4041
onClick={() => saveClick()}
4142
disabled={saveDisabled}
4243
>
43-
Save
44+
{saveButtonLabelText}
4445
</Button>
4546
</Box>
4647
);

0 commit comments

Comments
 (0)