mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Fix modal notification issue
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}}
|
||||
/> -->
|
||||
|
||||
Reference in New Issue
Block a user