This is an automated email from the ASF dual-hosted git repository. pearl11594 pushed a commit to branch fix-domain-scope-config in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit 2ab54d981ed8bfaad715ab9f3f58575862e30d6b Author: Pearl Dsilva <pearl1...@gmail.com> AuthorDate: Wed Sep 3 14:34:01 2025 -0400 UI: Update domain level configuration --- ui/src/components/view/SettingsTab.vue | 3 ++- ui/src/views/setting/ConfigurationTable.vue | 6 +++++- ui/src/views/setting/ConfigurationValue.vue | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ui/src/components/view/SettingsTab.vue b/ui/src/components/view/SettingsTab.vue index be55d03c4b9..ab75bef8394 100644 --- a/ui/src/components/view/SettingsTab.vue +++ b/ui/src/components/view/SettingsTab.vue @@ -25,7 +25,8 @@ @search="handleSearch" /> <ConfigurationTable :columns="columns" - :config="items" /> + :config="items" + :resource="resource" /> </a-col> </div> </template> diff --git a/ui/src/views/setting/ConfigurationTable.vue b/ui/src/views/setting/ConfigurationTable.vue index 56518d2570b..da05b9342a0 100644 --- a/ui/src/views/setting/ConfigurationTable.vue +++ b/ui/src/views/setting/ConfigurationTable.vue @@ -32,7 +32,7 @@ <b> {{record.displaytext }} </b> {{ ' (' + record.name + ')' }} <br/> {{ record.description }} </template> <template v-if="column.key === 'value'"> - <ConfigurationValue :configrecord="record" /> + <ConfigurationValue :configrecord="record" :resource="resource" /> </template> </template> </a-table> @@ -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 e438f0eb831..7ad95e5de95 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,17 @@ export default { this.setConfigData() }, watch: { + loading (newVal, oldVal) { + if (oldVal === true && newVal === false) { + this.setConfigData() + } + }, + configrecord: { + handler () { + this.setConfigData() + }, + deep: true + } }, methods: { setConfigData () { @@ -280,6 +295,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