summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/store/modules/HardwareStatus/AssemblyStore.js8
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue1
2 files changed, 8 insertions, 1 deletions
diff --git a/src/store/modules/HardwareStatus/AssemblyStore.js b/src/store/modules/HardwareStatus/AssemblyStore.js
index 56e5631d..fe97a9c8 100644
--- a/src/store/modules/HardwareStatus/AssemblyStore.js
+++ b/src/store/modules/HardwareStatus/AssemblyStore.js
@@ -46,8 +46,14 @@ const AssemblyStore = {
async updateIdentifyLedValue({ dispatch }, led) {
const uri = led.uri;
const updatedIdentifyLedValue = {
- LocationIndicatorActive: led.identifyLed,
+ Assemblies: [
+ {
+ MemberId: led.memberId,
+ LocationIndicatorActive: led.identifyLed,
+ },
+ ],
};
+
return await api.patch(uri, updatedIdentifyLedValue).catch((error) => {
dispatch('getAssemblyInfo');
console.log('error', error);
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue b/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue
index 68563691..afc14704 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue
@@ -137,6 +137,7 @@ export default {
this.$store
.dispatch('assemblies/updateIdentifyLedValue', {
uri: row.uri,
+ memberId: row.id,
identifyLed: row.identifyLed,
})
.catch(({ message }) => this.errorToast(message));