This commit is contained in:
@@ -25,23 +25,23 @@ export function useUpdateApp() {
|
||||
if (import.meta.env.DEV) console.log('NeedRefresh:', n)
|
||||
if (n) {
|
||||
toast.add({
|
||||
title: 'Update',
|
||||
title: 'Обновление',
|
||||
description:
|
||||
'A newer version of the app is available. Click the “Update” button to install.',
|
||||
'Доступна более новая версия приложения. Нажмите кнопку “Обновить”, чтобы установить его.',
|
||||
duration: 0,
|
||||
icon: 'lucide:cloud-download',
|
||||
close: false,
|
||||
actions: [
|
||||
{
|
||||
icon: 'lucide:arrow-big-up-dash',
|
||||
label: 'Update',
|
||||
label: 'Обновить',
|
||||
onClick: updateServiceWorker,
|
||||
color: 'error',
|
||||
},
|
||||
|
||||
{
|
||||
icon: 'lucide:x',
|
||||
label: 'Dismiss',
|
||||
label: 'Отложить',
|
||||
onClick: close,
|
||||
variant: 'outline',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user