Skip to content

Commit c60b3d7

Browse files
UI fix
1 parent d7dd344 commit c60b3d7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ui/src/views/infra/ClusterUpdate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export default {
142142
})
143143
this.rules = reactive({})
144144
},
145-
fetchData() {
145+
fetchData () {
146146
this.fetchArchitectureTypes()
147147
this.fetchStorageAccessGroupsData()
148148
},

ui/src/views/infra/UpdatePrimaryStorage.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default {
166166
isTagARule: this.resource.istagarule,
167167
capacityBytes: this.resource.disksizetotal,
168168
capacityIOPS: this.resource.capacityiops,
169-
nfsMountOpts: this.resource.nfsmountopts
169+
nfsMountOpts: this.resource.nfsmountopts,
170170
storageaccessgroups: this.resource.storageaccessgroups
171171
? this.resource.storageaccessgroups.split(',')
172172
: []
@@ -209,28 +209,28 @@ export default {
209209
params['details[0].nfsmountopts'] = values.nfsMountOpts
210210
}
211211
212-
this.updateStoragePool(params)
212+
this.updateStoragePool(params, values)
213213
}).catch(error => {
214214
this.formRef.value.scrollToField(error.errorFields[0].name)
215215
})
216216
},
217217
closeAction () {
218218
this.$emit('close-action')
219219
},
220-
updateStoragePool (args) {
220+
updateStoragePool (args, values) {
221221
api('updateStoragePool', args).then(json => {
222222
this.$message.success(`${this.$t('message.success.edit.primary.storage')}: ${this.resource.name}`)
223223
224224
if (values.storageaccessgroups != null && values.storageaccessgroups.length > 0) {
225-
params.storageaccessgroups = values.storageaccessgroups.join(',')
225+
args.storageaccessgroups = values.storageaccessgroups.join(',')
226226
} else {
227-
params.storageaccessgroups = ''
227+
args.storageaccessgroups = ''
228228
}
229229
230-
if (params.storageaccessgroups !== undefined && (this.resource.storageaccessgroups ? this.resource.storageaccessgroups.split(',').join(',') : '') !== params.storageaccessgroups) {
230+
if (args.storageaccessgroups !== undefined && (this.resource.storageaccessgroups ? this.resource.storageaccessgroups.split(',').join(',') : '') !== args.storageaccessgroups) {
231231
api('configureStorageAccess', {
232-
storageid: params.id,
233-
storageaccessgroups: params.storageaccessgroups
232+
storageid: args.id,
233+
storageaccessgroups: args.storageaccessgroups
234234
}).then(response => {
235235
this.$pollJob({
236236
jobId: response.configurestorageaccessresponse.jobid,

0 commit comments

Comments
 (0)