diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-28 10:32:40 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-28 10:32:40 +0300 |
commit | 5e82e58c03ca6e93857c789b59553e9f6610f996 (patch) | |
tree | 45076b3ab65f38f1b4089896d3695b3ac35101d5 /src/views | |
parent | 212677ee8165b4ebfc32440bfe7efa5fdb31560b (diff) | |
download | webui-vue-5e82e58c03ca6e93857c789b59553e9f6610f996.tar.xz |
turn off led for dimm
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/_sila/Overview/Inventory/InventoryTableDimmSlot.vue | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/src/views/_sila/Overview/Inventory/InventoryTableDimmSlot.vue b/src/views/_sila/Overview/Inventory/InventoryTableDimmSlot.vue index 14160502..f1858ae9 100644 --- a/src/views/_sila/Overview/Inventory/InventoryTableDimmSlot.vue +++ b/src/views/_sila/Overview/Inventory/InventoryTableDimmSlot.vue @@ -52,17 +52,19 @@ </template> <!-- Toggle identify LED --> <template #cell(identifyLed)="row"> - <b-form-checkbox - v-model="row.item.identifyLed" - name="switch" - switch - @change="toggleIdentifyLedValue(row.item)" - > - <span v-if="row.item.identifyLed"> - {{ $t('global.status.on') }} - </span> - <span v-else> {{ $t('global.status.off') }} </span> - </b-form-checkbox> + <div class="disabledDiv"> + <b-form-checkbox + v-model="row.item.identifyLed" + name="switch" + switch + @change="toggleIdentifyLedValue(row.item)" + > + <span v-if="row.item.identifyLed"> + {{ $t('global.status.on') }} + </span> + <span v-else> {{ $t('global.status.off') }} </span> + </b-form-checkbox> + </div> </template> <template #row-details="{ item }"> <b-container fluid> @@ -243,6 +245,13 @@ export default { this.searchTotalFilteredRows = filteredItems.length; }, toggleIdentifyLedValue(row) { + // dimms don't have leds, then + // eslint-disable-next-line no-constant-condition + if (true) { + row.identifyLed = false; + return; + } + this.$store .dispatch('memory/updateIdentifyLedValue', { uri: row.uri, |