Skip to content

Commit 3eafbf7

Browse files
SadiJrSadiJr
andauthored
ui: edit tariff quota and allow user driven backups parameter in Import Backup Offering (#5454)
* [UI] Fixes: edit tariff quota and allow user driven backups parameter in Import Backup Offering * Address reviews Co-authored-by: SadiJr <sadi@scclouds.com.br>
1 parent daa183d commit 3eafbf7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

ui/src/views/AutogenView.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,7 @@ export default {
479479
parentSearch: this.onSearch,
480480
parentChangeFilter: this.changeFilter,
481481
parentChangeResource: this.changeResource,
482-
parentPollActionCompletion: this.pollActionCompletion,
483-
parentEditTariffAction: () => {}
482+
parentPollActionCompletion: this.pollActionCompletion
484483
}
485484
},
486485
data () {

ui/src/views/offering/ImportBackupOffering.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<a-form-item>
8181
<tooltip-label slot="label" :title="$t('label.allowuserdrivenbackups')" :tooltip="apiParams.allowuserdrivenbackups.description"/>
8282
<a-switch
83-
v-decorator="['allowuserdrivenbackups']"
83+
v-decorator="['allowuserdrivenbackups', { initialValue: true }]"
8484
:default-checked="true"/>
8585
</a-form-item>
8686
<div :span="24" class="action-button">
@@ -169,7 +169,7 @@ export default {
169169
params[key] = input
170170
}
171171
}
172-
params.allowuserdrivenbackups = values.allowuserdrivenbackups ? values.allowuserdrivenbackups : true
172+
params.allowuserdrivenbackups = values.allowuserdrivenbackups
173173
this.loading = true
174174
const title = this.$t('label.import.offering')
175175
api('importBackupOffering', params).then(json => {

ui/src/views/plugins/quota/EditTariffValueWizard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default {
122122
}
123123
this.parentFetchData()
124124
}
125-
125+
this.$message.success(`${this.$t('message.setting.updated')} ${this.resource.description}`)
126126
this.onClose()
127127
}).catch(error => {
128128
this.$notification.error({

ui/src/views/plugins/quota/QuotaTariff.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export default {
3737
},
3838
data () {
3939
return {
40-
tariffAction: false,
41-
tariffResource: {}
40+
tariffAction: this.tariffAction,
41+
tariffResource: this.tariffResource
4242
}
4343
},
4444
provide: function () {
@@ -54,6 +54,7 @@ export default {
5454
showTariffAction (showAction, resource) {
5555
this.tariffAction = showAction
5656
this.tariffResource = resource
57+
this.loading = false
5758
}
5859
}
5960
}

0 commit comments

Comments
 (0)