Skip to content

Commit 175eed2

Browse files
authored
Fix primary storage update form not showing existing values (#9809)
1 parent 7fbd0a9 commit 175eed2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ui/src/views/infra/UpdatePrimaryStorage.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ export default {
121121
},
122122
created () {
123123
this.initForm()
124-
this.form.name = this.resource.name
125124
},
126125
computed: {
127126
canUpdateNFSMountOpts () {
@@ -136,7 +135,14 @@ export default {
136135
methods: {
137136
initForm () {
138137
this.formRef = ref()
139-
this.form = reactive({ })
138+
this.form = reactive({
139+
name: this.resource.name,
140+
tags: this.resource.tags,
141+
isTagARule: this.resource.istagarule,
142+
capacityBytes: this.resource.disksizetotal,
143+
capacityIOPS: this.resource.capacityiops,
144+
nfsMountOpts: this.resource.nfsmountopts
145+
})
140146
this.rules = reactive({ })
141147
},
142148
isAdmin () {

0 commit comments

Comments
 (0)