From f22644e0587e5f0b05aaa6f6dd524c22e42557b3 Mon Sep 17 00:00:00 2001 From: Yiya Chen Date: Fri, 17 Oct 2025 12:15:58 +0800 Subject: [PATCH] fix: reset filesystem (#559) Signed-off-by: Yi-Ya Chen --- .../edit/harvesterhci.io.host/HarvesterDisk.vue | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue b/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue index e0204e0a..bc01b158 100644 --- a/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue +++ b/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue @@ -8,7 +8,7 @@ import LabelValue from '@shell/components/LabelValue'; import { BadgeState } from '@components/BadgeState'; import { Banner } from '@components/Banner'; import LabeledSelect from '@shell/components/form/LabeledSelect'; -import { RadioGroup, RadioButton } from '@components/Form/Radio'; +import { RadioGroup } from '@components/Form/Radio'; import HarvesterDisk from '../../mixins/harvester-disk'; import Tags from '../../components/DiskTags'; import { HCI } from '../../types'; @@ -30,7 +30,6 @@ export default { BadgeState, Banner, RadioGroup, - RadioButton, ModalWithCard, Tags, }, @@ -184,12 +183,11 @@ export default { }, forceFormattedDisabled() { - const lastFormattedAt = this.blockDevice?.status?.deviceStatus?.fileSystem?.LastFormattedAt; const fileSystem = this.blockDevice?.status?.deviceStatus?.fileSystem.type; const systems = ['ext4', 'XFS']; - if (lastFormattedAt || this.blockDevice?.childParts?.length > 0) { + if (this.blockDevice?.childParts?.length > 0) { return true; } else if (systems.includes(fileSystem)) { return false; @@ -446,7 +444,7 @@ export default { />
-