From 25a7a246ba739f6b2ea25fa4a27d794d2aef0117 Mon Sep 17 00:00:00 2001 From: ljf Date: Fri, 17 Sep 2021 03:13:40 +0200 Subject: [PATCH] [enh] Refresh screen if config panel succeed --- app/src/views/app/AppConfigPanel.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/views/app/AppConfigPanel.vue b/app/src/views/app/AppConfigPanel.vue index e342b3e0..7b9db5ba 100644 --- a/app/src/views/app/AppConfigPanel.vue +++ b/app/src/views/app/AppConfigPanel.vue @@ -161,6 +161,15 @@ export default { api.put( `apps/${this.id}/config`, { key: id_, args }, { key: 'apps.update_config', name: this.id } ).then(response => { + api.get( + `apps/${this.id}/config-panel?full`, {}, { key: 'apps.get_config', name: this.id } + ).then(response => { + this.onQueriesResponse(response) + }).catch(err => { + if (err.name !== 'APIBadRequestError') throw err + const panel = this.panels.find(({ id }) => id_ === id) + this.$set(panel, 'serverError', err.message) + }) }).catch(err => { if (err.name !== 'APIBadRequestError') throw err const panel = this.panels.find(({ id }) => id_ === id)