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