summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
Diffstat (limited to 'src/store')
-rw-r--r--src/store/modules/HardwareStatus/SystemStore.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/store/modules/HardwareStatus/SystemStore.js b/src/store/modules/HardwareStatus/SystemStore.js
index 7fbd6bc41..87bf4696c 100644
--- a/src/store/modules/HardwareStatus/SystemStore.js
+++ b/src/store/modules/HardwareStatus/SystemStore.js
@@ -74,6 +74,17 @@ const SystemStore = {
}
});
},
+ async saveAssetTag(_, assetTag) {
+ return await api
+ .patch(`${await this.dispatch('global/getSystemPath')}`, assetTag)
+ .then(() => {
+ return i18n.global.t('pageOverview.toast.successSaveAssetTag');
+ })
+ .catch((error) => {
+ console.log(error);
+ throw new Error(i18n.global.t('pageOverview.toast.errorSaveAssetTag'));
+ });
+ },
},
};