diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-15 11:48:21 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-15 11:48:21 +0300 |
commit | b01c14cf558cde10c2089cb68d2ec5206b9a4ed9 (patch) | |
tree | 0dd4e30ef6f02d9769c49a9a42fa59d43ca93faf | |
parent | 320ee47927752c8e029b0e32bbcf69bfafb4d2f3 (diff) | |
download | webui-vue-b01c14cf558cde10c2089cb68d2ec5206b9a4ed9.tar.xz |
add toast about delay
-rw-r--r-- | src/locales/en-US.json | 3 | ||||
-rw-r--r-- | src/locales/ru-RU.json | 3 | ||||
-rw-r--r-- | src/store/modules/Settings/DateTimeStore.js | 5 |
3 files changed, 8 insertions, 3 deletions
diff --git a/src/locales/en-US.json b/src/locales/en-US.json index d134df08..b6597d60 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -212,7 +212,8 @@ }, "toast": { "errorSaveDateTime": "Error saving date and time settings.", - "successSaveDateTime": "Successfully saved date and time settings." + "successSaveDateTime": "Successfully saved date and time settings.", + "delaySaveDateTime": "Applying changes will take about 10 seconds." } }, "pageDumps": { diff --git a/src/locales/ru-RU.json b/src/locales/ru-RU.json index 24b629f5..c3e44278 100644 --- a/src/locales/ru-RU.json +++ b/src/locales/ru-RU.json @@ -296,7 +296,8 @@ }, "toast": { "errorSaveDateTime": "Ошибка сохранения настроек даты и времени.", - "successSaveDateTime": "Настройки даты и времени сохранены." + "successSaveDateTime": "Настройки даты и времени сохранены.", + "delaySaveDateTime": "Применение изменений займет около 10 секунд." } }, "pageDumps": { diff --git a/src/store/modules/Settings/DateTimeStore.js b/src/store/modules/Settings/DateTimeStore.js index 51b722a8..84535f94 100644 --- a/src/store/modules/Settings/DateTimeStore.js +++ b/src/store/modules/Settings/DateTimeStore.js @@ -68,7 +68,10 @@ const DateTimeStore = { } }) .then(() => { - return i18n.t('pageDateTime.toast.successSaveDateTime'); + return [ + i18n.t('pageDateTime.toast.successSaveDateTime'), + i18n.t('pageDateTime.toast.delaySaveDateTime'), + ]; }) .catch((error) => { console.log(error); |