From 175eed294c8d71697f26bac9caa7e2dcb598d9c3 Mon Sep 17 00:00:00 2001 From: Fabricio Duarte Date: Fri, 18 Oct 2024 06:24:50 -0300 Subject: [PATCH] Fix primary storage update form not showing existing values (#9809) --- ui/src/views/infra/UpdatePrimaryStorage.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/src/views/infra/UpdatePrimaryStorage.vue b/ui/src/views/infra/UpdatePrimaryStorage.vue index 7c026630a99..16de255a988 100644 --- a/ui/src/views/infra/UpdatePrimaryStorage.vue +++ b/ui/src/views/infra/UpdatePrimaryStorage.vue @@ -121,7 +121,6 @@ export default { }, created () { this.initForm() - this.form.name = this.resource.name }, computed: { canUpdateNFSMountOpts () { @@ -136,7 +135,14 @@ export default { methods: { initForm () { this.formRef = ref() - this.form = reactive({ }) + this.form = reactive({ + name: this.resource.name, + tags: this.resource.tags, + isTagARule: this.resource.istagarule, + capacityBytes: this.resource.disksizetotal, + capacityIOPS: this.resource.capacityiops, + nfsMountOpts: this.resource.nfsmountopts + }) this.rules = reactive({ }) }, isAdmin () {