Skip to content

Commit

Permalink
Fix buttons switch and clean up unused headers
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
  • Loading branch information
torchiaf committed Sep 23, 2024
1 parent 8a8ec1f commit 58ce1b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 0 additions & 5 deletions pkg/harvester/list/devices.harvesterhci.io.usbdevice.vue
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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,
],
};
},
Expand Down
6 changes: 4 additions & 2 deletions pkg/harvester/models/devices.harvesterhci.io.pcidevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
);

Expand Down
6 changes: 4 additions & 2 deletions pkg/harvester/models/devices.harvesterhci.io.usbdevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
);

Expand Down

0 comments on commit 58ce1b1

Please sign in to comment.