diff --git a/btr-web/btr-common-components/lang/en.json b/btr-web/btr-common-components/lang/en.json
index 84d3e78c..0a0fd6d2 100644
--- a/btr-web/btr-common-components/lang/en.json
+++ b/btr-web/btr-common-components/lang/en.json
@@ -22,7 +22,7 @@
"cancel": "Cancel",
"reviewConfirm": "Review and Confirm",
"save": "Save",
- "saveResume": "Save and Resume"
+ "saveExit": "Save and Resume Later"
},
"birthdate": "Birthdate",
"competency": "Competency",
diff --git a/btr-web/btr-layouts/components/bcros/ButtonControl.vue b/btr-web/btr-layouts/components/bcros/ButtonControl.vue
index 051661b0..2d467876 100644
--- a/btr-web/btr-layouts/components/bcros/ButtonControl.vue
+++ b/btr-web/btr-layouts/components/bcros/ButtonControl.vue
@@ -36,8 +36,11 @@
diff --git a/btr-web/btr-layouts/layouts/business.vue b/btr-web/btr-layouts/layouts/business.vue
index 979a3caa..5b0bac78 100644
--- a/btr-web/btr-layouts/layouts/business.vue
+++ b/btr-web/btr-layouts/layouts/business.vue
@@ -6,7 +6,10 @@
-
+
@@ -14,8 +17,12 @@
diff --git a/btr-web/btr-layouts/layouts/default.vue b/btr-web/btr-layouts/layouts/default.vue
index 90e77c98..b3bd8578 100644
--- a/btr-web/btr-layouts/layouts/default.vue
+++ b/btr-web/btr-layouts/layouts/default.vue
@@ -5,7 +5,6 @@
-
@@ -13,8 +12,6 @@
diff --git a/btr-web/btr-layouts/tests/unit/components/bcros/ButtonControl.spec.ts b/btr-web/btr-layouts/tests/unit/components/bcros/ButtonControl.spec.ts
index dfaa6cd8..4805684c 100644
--- a/btr-web/btr-layouts/tests/unit/components/bcros/ButtonControl.spec.ts
+++ b/btr-web/btr-layouts/tests/unit/components/bcros/ButtonControl.spec.ts
@@ -25,7 +25,14 @@ describe('Button Control tests', () => {
]
beforeEach(() => {
- wrapper = mount(BcrosButtonControl, { props: { leftButtons, rightButtons } })
+ wrapper = mount(
+ BcrosButtonControl,
+ {
+ props: {
+ leftButtonConstructors: leftButtons.map(btn => () => btn),
+ rightButtonConstructors: rightButtons.map(btn => () => btn)
+ }
+ })
})
afterEach(() => {
wrapper.unmount()
diff --git a/btr-web/btr-main-app/app/router.options.ts b/btr-web/btr-main-app/app/router.options.ts
index 4856f49c..090b6a4d 100644
--- a/btr-web/btr-main-app/app/router.options.ts
+++ b/btr-web/btr-main-app/app/router.options.ts
@@ -18,15 +18,8 @@ export default {
getBeneficialOwnerChangeCrumb
],
buttonControl: {
- // FUTURE: pass action functions from SI store
- leftButtons: [
- { action: () => {}, label: 'Cancel', variant: 'outline' },
- { action: () => {}, label: 'Save and Resume Later', variant: 'outline' },
- { action: () => {}, label: 'Save', variant: 'outline' }
- ],
- rightButtons: [
- { action: () => {}, icon: 'i-mdi-chevron-right', label: 'Review and Confirm', trailing: true }
- ]
+ leftButtons: [getSIChangeCancel, getSIChangeSaveExit, getSIChangeSave],
+ rightButtons: [getSIChangeConfirm]
},
layout: 'business',
title: 'Beneficial Owner Change'
diff --git a/btr-web/btr-main-app/utils/button-controls.ts b/btr-web/btr-main-app/utils/button-controls.ts
new file mode 100644
index 00000000..cd2e2956
--- /dev/null
+++ b/btr-web/btr-main-app/utils/button-controls.ts
@@ -0,0 +1,33 @@
+// FUTURE: pass action functions from SI store
+export function getSIChangeCancel (): ButtonControlI {
+ return {
+ action: () => {},
+ label: useI18n().t('labels.buttons.cancel'),
+ variant: 'outline'
+ }
+}
+
+export function getSIChangeConfirm (): ButtonControlI {
+ return {
+ action: () => {},
+ icon: 'i-mdi-chevron-right',
+ label: useI18n().t('labels.buttons.reviewConfirm'),
+ trailing: true
+ }
+}
+
+export function getSIChangeSave (): ButtonControlI {
+ return {
+ action: () => {},
+ label: useI18n().t('labels.buttons.save'),
+ variant: 'outline'
+ }
+}
+
+export function getSIChangeSaveExit (): ButtonControlI {
+ return {
+ action: () => {},
+ label: useI18n().t('labels.buttons.saveExit'),
+ variant: 'outline'
+ }
+}