mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
fix: update template name value
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
parent
59aec78631
commit
a207ec078b
@ -205,6 +205,11 @@ export default {
|
|||||||
if (tab.name === 'advanced') {
|
if (tab.name === 'advanced') {
|
||||||
this.$refs.yamlEditor?.refresh();
|
this.$refs.yamlEditor?.refresh();
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
updateNameNsDescriptionValue(newValue) {
|
||||||
|
this.templateValue.metadata.name = newValue.metadata.name;
|
||||||
|
this.templateValue.metadata.namespace = newValue.metadata.namespace;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -226,7 +231,7 @@ export default {
|
|||||||
:mode="realTemplateMode"
|
:mode="realTemplateMode"
|
||||||
name-label="harvester.vmTemplate.nameNsDescription.name"
|
name-label="harvester.vmTemplate.nameNsDescription.name"
|
||||||
:namespaced="true"
|
:namespaced="true"
|
||||||
@update:value="$emit('update:value', $event)"
|
@update:value="updateNameNsDescriptionValue"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user