Fixed update available toast not disappearing
This commit is contained in:
parent
e1f58375fa
commit
8d2d45ef38
@ -97,7 +97,7 @@ async function startApp() {
|
|||||||
const updates = await fetchData('checkForUpdates')
|
const updates = await fetchData('checkForUpdates')
|
||||||
store.dispatch('setUpdateInfo', updates).catch(console.error)
|
store.dispatch('setUpdateInfo', updates).catch(console.error)
|
||||||
if (updates.updateAvailable) {
|
if (updates.updateAvailable) {
|
||||||
toast(i18n.t('toasts.updateAvailable'), 'browser_updated', false, 'updates-toast')
|
toast(i18n.t('toasts.updateAvailable'), 'browser_updated', true, 'updates-toast')
|
||||||
} else {
|
} else {
|
||||||
toast(i18n.t('toasts.noUpdateAvailable'), 'done', true, 'updates-toast')
|
toast(i18n.t('toasts.noUpdateAvailable'), 'done', true, 'updates-toast')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user