mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-20 16:12:31 +00:00
fix: expand the description for some toast
This commit is contained in:
parent
66b0f33366
commit
ee7c9176dc
2 changed files with 11 additions and 12 deletions
|
|
@ -60,10 +60,11 @@
|
|||
|
||||
IPC.on('update-downloaded', () => {
|
||||
toast.dismiss()
|
||||
toast.success('Update Downloaded.', {
|
||||
duration: Number.POSITIVE_INFINITY,
|
||||
toast.success('Update Downloaded', {
|
||||
duration: Number.POSITIVE_INFINITY,
|
||||
description: 'Click install now to install the update. Installation can also occur after you quit the app.',
|
||||
action: {
|
||||
label: 'Install',
|
||||
label: 'Install now',
|
||||
onClick: () => IPC.emit('quit-and-install')
|
||||
}
|
||||
})
|
||||
|
|
@ -83,7 +84,6 @@
|
|||
classes: {
|
||||
closeButton: SUPPORTS.isAndroid ? "toast-close-button" : ""
|
||||
}
|
||||
|
||||
}} style="margin-top: var(--safe-area-top)"/>
|
||||
<div class='overflow-hidden content-wrapper h-full z-10'>
|
||||
<TorrentModal />
|
||||
|
|
|
|||
|
|
@ -6,18 +6,17 @@
|
|||
import { settings } from '@/modules/settings.js'
|
||||
import { toast } from 'svelte-sonner'
|
||||
import { logout } from './Logout.svelte'
|
||||
import { rss } from '@/views/TorrentSearch/TorrentModal.svelte'
|
||||
import IPC from '@/modules/ipc.js'
|
||||
import SidebarLink from './SidebarLink.svelte'
|
||||
|
||||
let updateState = ''
|
||||
// let updateState = ''
|
||||
|
||||
IPC.on('update-available', () => {
|
||||
updateState = 'downloading'
|
||||
})
|
||||
IPC.on('update-downloaded', () => {
|
||||
updateState = 'ready'
|
||||
})
|
||||
// IPC.on('update-available', () => {
|
||||
// updateState = 'downloading'
|
||||
// })
|
||||
// IPC.on('update-downloaded', () => {
|
||||
// updateState = 'ready'
|
||||
// })
|
||||
|
||||
const view = getContext('view')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue