refactor: disable and hide filesystem warning banner in edit / view mode (#919)

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee 2026-06-09 14:49:39 +08:00 committed by GitHub
parent 44ef9195eb
commit d3f63df883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -234,7 +234,7 @@ export default {
</div> </div>
<Banner <Banner
v-if="completedRows.length > 0" v-if="completedRows.length > 0 && mode === 'create'"
color="warning" color="warning"
class="mt-10" class="mt-10"
> >

View File

@ -21,9 +21,7 @@ import { saferDump } from '@shell/utils/create-yaml';
import { exceptionToErrorsArray } from '@shell/utils/error'; import { exceptionToErrorsArray } from '@shell/utils/error';
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations'; import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
import { BEFORE_SAVE_HOOKS, AFTER_SAVE_HOOKS } from '@shell/mixins/child-hook'; import { BEFORE_SAVE_HOOKS, AFTER_SAVE_HOOKS } from '@shell/mixins/child-hook';
import CreateEditView from '@shell/mixins/create-edit-view'; import CreateEditView from '@shell/mixins/create-edit-view';
import { parseVolumeClaimTemplates } from '@pkg/utils/vm'; import { parseVolumeClaimTemplates } from '@pkg/utils/vm';
import VM_MIXIN from '../../mixins/harvester-vm'; import VM_MIXIN from '../../mixins/harvester-vm';
import { HCI } from '../../types'; import { HCI } from '../../types';
@ -844,7 +842,7 @@ export default {
> >
<Filesystem <Filesystem
v-model:value="filesystemRows" v-model:value="filesystemRows"
:mode="mode" :mode="isCreate ? mode : 'view'"
:namespace="value.metadata.namespace" :namespace="value.metadata.namespace"
/> />
</Tab> </Tab>