diff options
Diffstat (limited to 'src/store/modules')
-rw-r--r-- | src/store/modules/Settings/DateTimeStore.js (renamed from src/store/modules/Configuration/DateTimeSettingsStore.js) | 10 | ||||
-rw-r--r-- | src/store/modules/Settings/NetworkStore.js (renamed from src/store/modules/Configuration/NetworkSettingsStore.js) | 10 | ||||
-rw-r--r-- | src/store/modules/Settings/PowerPolicyStore.js (renamed from src/store/modules/Operations/PowerPolicyStore.js) | 0 | ||||
-rw-r--r-- | src/store/modules/Settings/SecuritySettingsStore.js (renamed from src/store/modules/Configuration/SecuritySettingsStore.js) | 0 |
4 files changed, 7 insertions, 13 deletions
diff --git a/src/store/modules/Configuration/DateTimeSettingsStore.js b/src/store/modules/Settings/DateTimeStore.js index f431a740..51b722a8 100644 --- a/src/store/modules/Configuration/DateTimeSettingsStore.js +++ b/src/store/modules/Settings/DateTimeStore.js @@ -30,7 +30,7 @@ const DateTimeStore = { console.log(error); }); }, - async updateDateTimeSettings({ state }, dateTimeForm) { + async updateDateTime({ state }, dateTimeForm) { const ntpData = { NTP: { ProtocolEnabled: dateTimeForm.ntpProtocolEnabled, @@ -68,15 +68,11 @@ const DateTimeStore = { } }) .then(() => { - return i18n.t( - 'pageDateTimeSettings.toast.successSaveDateTimeSettings' - ); + return i18n.t('pageDateTime.toast.successSaveDateTime'); }) .catch((error) => { console.log(error); - throw new Error( - i18n.t('pageDateTimeSettings.toast.errorSaveDateTimeSettings') - ); + throw new Error(i18n.t('pageDateTime.toast.errorSaveDateTime')); }); }, }, diff --git a/src/store/modules/Configuration/NetworkSettingsStore.js b/src/store/modules/Settings/NetworkStore.js index 159c5bf6..4040658a 100644 --- a/src/store/modules/Configuration/NetworkSettingsStore.js +++ b/src/store/modules/Settings/NetworkStore.js @@ -2,7 +2,7 @@ import api from '@/store/api'; import i18n from '@/i18n'; import { find, remove } from 'lodash'; -const NetworkSettingsStore = { +const NetworkStore = { namespaced: true, state: { defaultGateway: '', @@ -100,16 +100,14 @@ const NetworkSettingsStore = { ) .then(() => dispatch('getEthernetData')) .then(() => { - return i18n.t('pageNetworkSettings.toast.successSaveNetworkSettings'); + return i18n.t('pageNetwork.toast.successSaveNetworkSettings'); }) .catch((error) => { console.log(error); - throw new Error( - i18n.t('pageNetworkSettings.toast.errorSaveNetworkSettings') - ); + throw new Error(i18n.t('pageNetwork.toast.errorSaveNetworkSettings')); }); }, }, }; -export default NetworkSettingsStore; +export default NetworkStore; diff --git a/src/store/modules/Operations/PowerPolicyStore.js b/src/store/modules/Settings/PowerPolicyStore.js index 4e76cdfe..4e76cdfe 100644 --- a/src/store/modules/Operations/PowerPolicyStore.js +++ b/src/store/modules/Settings/PowerPolicyStore.js diff --git a/src/store/modules/Configuration/SecuritySettingsStore.js b/src/store/modules/Settings/SecuritySettingsStore.js index 5a885425..5a885425 100644 --- a/src/store/modules/Configuration/SecuritySettingsStore.js +++ b/src/store/modules/Settings/SecuritySettingsStore.js |