Fix modal notification issue

This commit is contained in:
Webifi 2023-06-07 18:27:08 -05:00
parent c3172eb4aa
commit 568692300e
3 changed files with 4 additions and 11 deletions

View File

@ -126,6 +126,7 @@
applyProfile(chatId, chat.settings.profile as any)
refreshSettings()
} catch (e) {
console.error(e)
errorNotice('Error deleting profile:', e)
}
}

View File

@ -18,12 +18,13 @@
export { classes as class }
const doCancel = () => {
if (!onCancel || !onCancel()) closeModal()
closeModal()
onCancel && onCancel()
}
const doConfirm = () => {
onConfirm()
closeModal()
onConfirm()
}
</script>

View File

@ -96,12 +96,3 @@
</div>
</div>
{/if}
<!-- <svelte:window
on:keydown={(event) => {
if (event.key === 'Escape') {
event.stopPropagation()
onClose()
}
}}
/> -->