Fix unable to add new secret due to missing namespace

Signed-off-by: andy.lee <andy.lee@suse.com>
This commit is contained in:
andy.lee
2024-10-30 16:50:43 +08:00
parent 4254a825a9
commit 24477757e4
@@ -97,12 +97,10 @@ export default {
};
});
// if (!(this.disableCreate || this.mode === _VIEW) && this.isCreatable) {
out.unshift({
label: this.t('harvester.virtualMachine.createSSHKey'),
value: _NEW,
});
// }
return out;
},
@@ -318,9 +316,10 @@ export default {
:mode="mode"
/>
</div>
</div>
<div
v-if="value.spec.events.enabled"
class="col span-6"
class="col span-6 mt-20"
>
<LabeledInput
v-model:value="value.spec.events.pollingInterval"
@@ -328,7 +327,6 @@ export default {
:mode="mode"
/>
</div>
</div>
<ModalWithCard
v-if="isOpen"
@@ -344,7 +342,7 @@ export default {
<template #content>
<NameNsDescription
:value="value"
:value="secret"
@update:value="$emit('update:value', $event)"
:namespaced="true"
mode="create"