mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Refresh screen if config panel succeed
This commit is contained in:
parent
338c679287
commit
25a7a246ba
1 changed files with 9 additions and 0 deletions
|
@ -161,6 +161,15 @@ export default {
|
||||||
api.put(
|
api.put(
|
||||||
`apps/${this.id}/config`, { key: id_, args }, { key: 'apps.update_config', name: this.id }
|
`apps/${this.id}/config`, { key: id_, args }, { key: 'apps.update_config', name: this.id }
|
||||||
).then(response => {
|
).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 => {
|
}).catch(err => {
|
||||||
if (err.name !== 'APIBadRequestError') throw err
|
if (err.name !== 'APIBadRequestError') throw err
|
||||||
const panel = this.panels.find(({ id }) => id_ === id)
|
const panel = this.panels.find(({ id }) => id_ === id)
|
||||||
|
|
Loading…
Reference in a new issue