Fix primary storage update form not showing existing values (#9809)

This commit is contained in:
Fabricio Duarte 2024-10-18 06:24:50 -03:00 committed by GitHub
parent 7fbd0a9fb4
commit 175eed294c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 2 deletions

View File

@ -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 () {