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