mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
@@ -23,7 +23,7 @@ export default {
|
||||
|
||||
computed: {
|
||||
vm() {
|
||||
const vm = this.vmList.find( (V) => V.id === `${ this.row.metadata.namespace }/${ this.value }`);
|
||||
const vm = this.vmList.find( V => V.id === `${ this.row.metadata.namespace }/${ this.value }`);
|
||||
|
||||
return vm;
|
||||
},
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<script>
|
||||
import { OFF } from '../models/kubevirt.io.virtualmachine';
|
||||
import { get } from '@shell/utils/object';
|
||||
import { isIpv4 } from '@shell/utils/string';
|
||||
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
|
||||
import CopyToClipboardText from '@shell/components/CopyToClipboardText';
|
||||
import { HCI } from '../types';
|
||||
import { MANAGEMENT_NETWORK } from '../mixins/harvester-vm';
|
||||
import CopyToClipboardText from '@shell/components/CopyToClipboardText';
|
||||
import { OFF } from '../models/kubevirt.io.virtualmachine';
|
||||
|
||||
export default {
|
||||
components: { CopyToClipboardText },
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { HCI } from '../types';
|
||||
import { BadgeState } from '@components/BadgeState';
|
||||
import { HCI } from '../types';
|
||||
|
||||
export default {
|
||||
components: { BadgeState },
|
||||
|
||||
@@ -22,7 +22,7 @@ export default {
|
||||
computed: {
|
||||
volume() {
|
||||
const namespace = this.row?.metadata?.namespace;
|
||||
const volume = this.volumeList.find( (V) => V.id === `${ namespace }/${ this.value }`) || {};
|
||||
const volume = this.volumeList.find( V => V.id === `${ namespace }/${ this.value }`) || {};
|
||||
|
||||
return volume;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user