Fix buttons switch and clean up unused headers

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-10-23 17:01:26 +02:00
parent 40944a24f0
commit 9f84a4c26b
3 changed files with 8 additions and 9 deletions
@@ -36,14 +36,16 @@ export default class PCIDevice extends SteveModel {
icon: 'icon icon-fw icon-dot',
label: 'Enable Passthrough',
bulkable: true,
bulkAction: 'enablePassthroughBulk'
bulkAction: 'enablePassthroughBulk',
weight: 1
},
{
action: 'disablePassthrough',
enabled: this.isEnabling && this.claimedByMe,
icon: 'icon icon-fw icon-dot-open',
label: 'Disable Passthrough',
bulkable: true
bulkable: true,
weight: 0
},
);
@@ -36,14 +36,16 @@ export default class USBDevice extends SteveModel {
icon: 'icon icon-fw icon-dot',
label: 'Enable Passthrough',
bulkable: true,
bulkAction: 'enablePassthroughBulk'
bulkAction: 'enablePassthroughBulk',
weight: 1
},
{
action: 'disablePassthrough',
enabled: this.status.enabled,
icon: 'icon icon-fw icon-dot-open',
label: 'Disable Passthrough',
bulkable: true
bulkable: true,
weight: 0
},
);