Fix modal notification issue
This commit is contained in:
parent
c3172eb4aa
commit
568692300e
|
@ -126,6 +126,7 @@
|
|||
applyProfile(chatId, chat.settings.profile as any)
|
||||
refreshSettings()
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
errorNotice('Error deleting profile:', e)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,12 +18,13 @@
|
|||
export { classes as class }
|
||||
|
||||
const doCancel = () => {
|
||||
if (!onCancel || !onCancel()) closeModal()
|
||||
closeModal()
|
||||
onCancel && onCancel()
|
||||
}
|
||||
|
||||
const doConfirm = () => {
|
||||
onConfirm()
|
||||
closeModal()
|
||||
onConfirm()
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
|
@ -96,12 +96,3 @@
|
|||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<!-- <svelte:window
|
||||
on:keydown={(event) => {
|
||||
if (event.key === 'Escape') {
|
||||
event.stopPropagation()
|
||||
onClose()
|
||||
}
|
||||
}}
|
||||
/> -->
|
||||
|
|
Loading…
Reference in New Issue