Update confirm text button when duplicating screens
This commit is contained in:
parent
a6cf5852fd
commit
6fbfeaf365
|
@ -85,5 +85,6 @@
|
||||||
onConfirm={createDuplicateScreen}
|
onConfirm={createDuplicateScreen}
|
||||||
screenName={screen?.props._instanceName}
|
screenName={screen?.props._instanceName}
|
||||||
screenUrl={screen?.routing.route}
|
screenUrl={screen?.routing.route}
|
||||||
|
confirmText="Duplicate"
|
||||||
/>
|
/>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
export let showProgressCircle = false
|
export let showProgressCircle = false
|
||||||
export let screenName
|
export let screenName
|
||||||
export let screenUrl
|
export let screenUrl
|
||||||
|
export let confirmText = "Continue"
|
||||||
|
|
||||||
let routeError
|
let routeError
|
||||||
let touched = false
|
let touched = false
|
||||||
|
@ -46,7 +47,7 @@
|
||||||
<ModalContent
|
<ModalContent
|
||||||
size="M"
|
size="M"
|
||||||
title={"Enter details"}
|
title={"Enter details"}
|
||||||
confirmText={"Continue"}
|
{confirmText}
|
||||||
onConfirm={confirmScreenDetails}
|
onConfirm={confirmScreenDetails}
|
||||||
{onCancel}
|
{onCancel}
|
||||||
cancelText={"Back"}
|
cancelText={"Back"}
|
||||||
|
|
Loading…
Reference in New Issue