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 { readableDate } from '@/helpers/filters/date'
|
||||||
import { humanPermissionName } from '@/helpers/filters/human'
|
import { humanPermissionName } from '@/helpers/filters/human'
|
||||||
import { required } from '@/helpers/validators'
|
import { required } from '@/helpers/validators'
|
||||||
|
import { isEmptyValue } from '@/helpers/commons'
|
||||||
import {
|
import {
|
||||||
formatFormData,
|
formatFormData,
|
||||||
formatI18nField,
|
formatI18nField,
|
||||||
|
@ -438,7 +439,7 @@ export default {
|
||||||
action
|
action
|
||||||
? `apps/${this.id}/actions/${action}`
|
? `apps/${this.id}/actions/${action}`
|
||||||
: `apps/${this.id}/config/${id}`,
|
: `apps/${this.id}/config/${id}`,
|
||||||
{ args: objectToParams(args) },
|
isEmptyValue(args) ? {} : { args: objectToParams(args) },
|
||||||
{ key: `apps.${action ? 'action' : 'update'}_config`, id, name: this.id }
|
{ key: `apps.${action ? 'action' : 'update'}_config`, id, name: this.id }
|
||||||
).then(() => {
|
).then(() => {
|
||||||
this.$refs.view.fetchQueries({ triggerLoading: true })
|
this.$refs.view.fetchQueries({ triggerLoading: true })
|
||||||
|
|
Loading…
Add table
Reference in a new issue