mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 13:16:05 +08:00
feat: add warning message when disabling a device that have not been detached in the backend (#675)
* feat: add wanring message when disabling a device that haven not been detached in the backend Signed-off-by: Jack Yu <jack.yu@suse.com> * fix: remove unused en-us key Signed-off-by: Jack Yu <jack.yu@suse.com> --------- Signed-off-by: Jack Yu <jack.yu@suse.com>
This commit is contained in:
@@ -54,7 +54,13 @@ export default {
|
||||
devices() {
|
||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||
|
||||
return this.$store.getters[`${ inStore }/all`](HCI.USB_DEVICE) || [];
|
||||
const data = this.$store.getters[`${ inStore }/all`](HCI.USB_DEVICE) || [];
|
||||
|
||||
data.forEach((row) => {
|
||||
row.allowDisable = true;
|
||||
});
|
||||
|
||||
return data;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user