Prevent premature closure of imported users modal. (#10916)
This commit is contained in:
parent
a9d74f759f
commit
7e3b6fd07b
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
export let fixed = false
|
export let fixed = false
|
||||||
export let inline = false
|
export let inline = false
|
||||||
|
export let disableCancel = false
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
let visible = fixed || inline
|
let visible = fixed || inline
|
||||||
|
@ -38,7 +39,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
export function cancel() {
|
export function cancel() {
|
||||||
if (!visible) {
|
if (!visible || disableCancel) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
dispatch("cancel")
|
dispatch("cancel")
|
||||||
|
|
|
@ -373,7 +373,7 @@
|
||||||
<OnboardingTypeModal {chooseCreationType} />
|
<OnboardingTypeModal {chooseCreationType} />
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
<Modal bind:this={passwordModal}>
|
<Modal bind:this={passwordModal} disableCancel={true}>
|
||||||
<PasswordModal
|
<PasswordModal
|
||||||
createUsersResponse={bulkSaveResponse}
|
createUsersResponse={bulkSaveResponse}
|
||||||
userData={userData.users}
|
userData={userData.users}
|
||||||
|
|
Loading…
Reference in New Issue