fix: expand the description for some toast

This commit is contained in:
NoCrypt 2024-08-20 18:36:14 +07:00
parent 66b0f33366
commit ee7c9176dc
2 changed files with 11 additions and 12 deletions

View file

@ -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 />

View file

@ -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')