From 8d5426ef38bcbe15e640006bed454de380ffb994 Mon Sep 17 00:00:00 2001 From: "andy.lee" Date: Tue, 30 Jul 2024 16:46:47 +0800 Subject: [PATCH] add node disk scheduling radio buttons Signed-off-by: andy.lee --- .../harvesterhci.io.host/HarvesterHostDisk.vue | 14 +++++++++++++- .../detail/harvesterhci.io.host/index.vue | 1 + .../edit/harvesterhci.io.host/HarvesterDisk.vue | 10 ++++++++++ pkg/harvester/edit/harvesterhci.io.host/index.vue | 4 ++-- 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/pkg/harvester/detail/harvesterhci.io.host/HarvesterHostDisk.vue b/pkg/harvester/detail/harvesterhci.io.host/HarvesterHostDisk.vue index 5692c856bae..239ef2a0b4d 100644 --- a/pkg/harvester/detail/harvesterhci.io.host/HarvesterHostDisk.vue +++ b/pkg/harvester/detail/harvesterhci.io.host/HarvesterHostDisk.vue @@ -4,13 +4,15 @@ import LabelValue from '@shell/components/LabelValue'; import { BadgeState } from '@components/BadgeState'; import { Banner } from '@components/Banner'; import HarvesterDisk from '../../mixins/harvester-disk'; +import { RadioGroup } from '@components/Form/Radio'; export default { components: { LabelValue, BadgeState, Banner, - Tag + Tag, + RadioGroup }, mixins: [ @@ -117,6 +119,16 @@ export default {
+
+ +
{{ t('harvester.host.disk.conditions') }}: { const provisioned = d?.spec?.fileSystem?.provisioned; const isCurrentNode = d?.spec?.nodeName === this.value.id; diff --git a/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue b/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue index bd10b089347..0f2987257af 100644 --- a/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue +++ b/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue @@ -181,6 +181,16 @@ export default {
+
+ +
{{ t('harvester.host.disk.conditions') }}: { (disks[disk.name] || {}).tags = disk.tags; + (disks[disk.name] || {}).allowScheduling = disk.allowScheduling; }); - let count = 0; const retrySave = async() => {