diff --git a/ui/src/components/view/SettingsTab.vue b/ui/src/components/view/SettingsTab.vue
index be55d03c4b94..ab75bef83949 100644
--- a/ui/src/components/view/SettingsTab.vue
+++ b/ui/src/components/view/SettingsTab.vue
@@ -25,7 +25,8 @@
@search="handleSearch" />
+ :config="items"
+ :resource="resource" />
diff --git a/ui/src/views/setting/ConfigurationTable.vue b/ui/src/views/setting/ConfigurationTable.vue
index 56518d2570b1..da05b9342a0a 100644
--- a/ui/src/views/setting/ConfigurationTable.vue
+++ b/ui/src/views/setting/ConfigurationTable.vue
@@ -32,7 +32,7 @@
{{record.displaytext }} {{ ' (' + record.name + ')' }}
{{ record.description }}
-
+
@@ -85,6 +85,10 @@ export default {
pagesize: {
type: Number,
default: 20
+ },
+ resource: {
+ type: Object,
+ required: false
}
},
data () {
diff --git a/ui/src/views/setting/ConfigurationValue.vue b/ui/src/views/setting/ConfigurationValue.vue
index e438f0eb8315..662e5ef142e5 100644
--- a/ui/src/views/setting/ConfigurationValue.vue
+++ b/ui/src/views/setting/ConfigurationValue.vue
@@ -217,6 +217,10 @@ export default {
actions: {
type: Array,
default: () => []
+ },
+ resource: {
+ type: Object,
+ required: false
}
},
data () {
@@ -254,6 +258,12 @@ export default {
this.setConfigData()
},
watch: {
+ configrecord: {
+ handler () {
+ this.setConfigData()
+ },
+ deep: true
+ }
},
methods: {
setConfigData () {
@@ -280,6 +290,9 @@ export default {
name: configrecord.name,
value: newValue
}
+ if (this.scopeKey === 'domainid' && !params[this.scopeKey]) {
+ params[this.scopeKey] = this.resource?.id
+ }
postAPI('updateConfiguration', params).then(json => {
this.editableValue = this.getEditableValue(json.updateconfigurationresponse.configuration)
this.actualValue = this.editableValue
@@ -315,6 +328,9 @@ export default {
[this.scopeKey]: this.$route.params?.id,
name: configrecord.name
}
+ if (this.scopeKey === 'domainid' && !params[this.scopeKey]) {
+ params[this.scopeKey] = this.resource?.id
+ }
postAPI('resetConfiguration', params).then(json => {
this.editableValue = this.getEditableValue(json.resetconfigurationresponse.configuration)
this.actualValue = this.editableValue