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 inline = false
|
||||
export let disableCancel = false
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
let visible = fixed || inline
|
||||
|
@ -38,7 +39,7 @@
|
|||
}
|
||||
|
||||
export function cancel() {
|
||||
if (!visible) {
|
||||
if (!visible || disableCancel) {
|
||||
return
|
||||
}
|
||||
dispatch("cancel")
|
||||
|
|
|
@ -373,7 +373,7 @@
|
|||
<OnboardingTypeModal {chooseCreationType} />
|
||||
</Modal>
|
||||
|
||||
<Modal bind:this={passwordModal}>
|
||||
<Modal bind:this={passwordModal} disableCancel={true}>
|
||||
<PasswordModal
|
||||
createUsersResponse={bulkSaveResponse}
|
||||
userData={userData.users}
|
||||
|
|
Loading…
Reference in New Issue