mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] key value aggregation in diagnosis
This commit is contained in:
parent
955c774602
commit
37e58f5fe7
1 changed files with 2 additions and 5 deletions
|
@ -183,14 +183,11 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleIgnoreIssue (action, report, item) {
|
toggleIgnoreIssue (action, report, item) {
|
||||||
const filterArgs = [report.id].concat(Object.entries(item.meta).reduce((filterArgs, entries) => {
|
const filterArgs = [report.id].concat(Object.entries(item.meta).map(entries => entries.join('=')))
|
||||||
filterArgs.push(entries.join('='))
|
|
||||||
return filterArgs
|
|
||||||
}))
|
|
||||||
|
|
||||||
api.put(
|
api.put(
|
||||||
'diagnosis/' + action,
|
'diagnosis/' + action,
|
||||||
{ 'filter[]': filterArgs },
|
{ filter: filterArgs },
|
||||||
`diagnosis.${action}.${item.status.toLowerCase()}`
|
`diagnosis.${action}.${item.status.toLowerCase()}`
|
||||||
).then(() => {
|
).then(() => {
|
||||||
item.ignored = action === 'ignore'
|
item.ignored = action === 'ignore'
|
||||||
|
|
Loading…
Add table
Reference in a new issue