From efdfdbf0b86eb6f9d308e55dba6c147669846d94 Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Mon, 3 Mar 2025 17:13:19 +0800 Subject: [PATCH] Add label tab to vm template Signed-off-by: Andy Lee --- ...erhci.io.virtualmachinetemplateversion.vue | 63 +++++++++++-------- 1 file changed, 36 insertions(+), 27 deletions(-) diff --git a/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue b/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue index 97e8aee0..dccca793 100644 --- a/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue +++ b/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue @@ -6,12 +6,11 @@ import { Checkbox } from '@components/Form/Checkbox'; import CruResource from '@shell/components/CruResource'; import NameNsDescription from '@shell/components/form/NameNsDescription'; import LabeledSelect from '@shell/components/form/LabeledSelect'; -import Labels from '@shell/components/form/Labels'; +import { Banner } from '@components/Banner'; import KeyValue from '@shell/components/form/KeyValue'; import NodeScheduling from '@shell/components/form/NodeScheduling'; import PodAffinity from '@shell/components/form/PodAffinity'; import UnitInput from '@shell/components/form/UnitInput'; - import { randomStr } from '@shell/utils/string'; import { _CONFIG, _EDIT, _VIEW } from '@shell/config/query-params'; import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations'; @@ -47,7 +46,7 @@ export default { PodAffinity, Reserved, UnitInput, - Labels, + Banner, KeyValue, }, @@ -321,34 +320,44 @@ export default { - + + + - - + :read-allowed="false" + :value-can-be-empty="true" + @update:value="value.setLabels($event)" + /> + + + + + +