mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
Fix usb passthrough claim get condition
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
parent
63381b350f
commit
60a509cedb
@ -69,7 +69,7 @@ export default class USBDevice extends SteveModel {
|
|||||||
get passthroughClaim() {
|
get passthroughClaim() {
|
||||||
const passthroughClaims = this.$getters['all'](HCI.USB_CLAIM) || [];
|
const passthroughClaims = this.$getters['all'](HCI.USB_CLAIM) || [];
|
||||||
|
|
||||||
return !!this.status && passthroughClaims.find(req => req?.status?.nodeName === this.status?.nodeName && req?.status?.pciAddress === this.status?.pciAddress);
|
return !!this.status && passthroughClaims.find(req => req?.status?.nodeName === this.status?.nodeName && req?.metadata?.name === this.metadata?.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is an id for each 'type' of device - there may be multiple instances of device CRs
|
// this is an id for each 'type' of device - there may be multiple instances of device CRs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user