mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
Fix buttons switch and clean up unused headers
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
parent
40944a24f0
commit
9f84a4c26b
@ -1,6 +1,5 @@
|
||||
<script>
|
||||
import { HCI } from '../types';
|
||||
import { STATE, SIMPLE_NAME } from '@shell/config/table-headers';
|
||||
import { allHash } from '@shell/utils/promise';
|
||||
import Banner from '@components/Banner/Banner.vue';
|
||||
import Loading from '@shell/components/Loading';
|
||||
@ -42,10 +41,6 @@ export default {
|
||||
hasPCIAddon: false,
|
||||
schema: null,
|
||||
toPciAddon: `${ HCI.ADD_ONS }/harvester-system/${ ADD_ONS.PCI_DEVICE_CONTROLLER }?mode=edit`,
|
||||
headers: [
|
||||
{ ...STATE },
|
||||
SIMPLE_NAME,
|
||||
],
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
@ -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
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user