mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
AppInfo: send config panel args
only if not empty
This commit is contained in:
parent
bf15696363
commit
057a33e8bf
1 changed files with 2 additions and 1 deletions
|
@ -265,6 +265,7 @@ import api, { objectToParams } from '@/api'
|
|||
import { readableDate } from '@/helpers/filters/date'
|
||||
import { humanPermissionName } from '@/helpers/filters/human'
|
||||
import { required } from '@/helpers/validators'
|
||||
import { isEmptyValue } from '@/helpers/commons'
|
||||
import {
|
||||
formatFormData,
|
||||
formatI18nField,
|
||||
|
@ -438,7 +439,7 @@ export default {
|
|||
action
|
||||
? `apps/${this.id}/actions/${action}`
|
||||
: `apps/${this.id}/config/${id}`,
|
||||
{ args: objectToParams(args) },
|
||||
isEmptyValue(args) ? {} : { args: objectToParams(args) },
|
||||
{ key: `apps.${action ? 'action' : 'update'}_config`, id, name: this.id }
|
||||
).then(() => {
|
||||
this.$refs.view.fetchQueries({ triggerLoading: true })
|
||||
|
|
Loading…
Reference in a new issue