mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Merge pull request #367 from YunoHost/fix-ignore-button
[fix] Ignore button is broken
This commit is contained in:
commit
e64183e2d9
1 changed files with 3 additions and 3 deletions
|
@ -183,14 +183,14 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
toggleIgnoreIssue (action, report, item) {
|
toggleIgnoreIssue (action, report, item) {
|
||||||
const filterArgs = Object.entries(item.meta).reduce((filterArgs, entries) => {
|
const filterArgs = [report.id].concat(Object.entries(item.meta).reduce((filterArgs, entries) => {
|
||||||
filterArgs.push(entries.join('='))
|
filterArgs.push(entries.join('='))
|
||||||
return filterArgs
|
return filterArgs
|
||||||
}, [report.id])
|
}))
|
||||||
|
|
||||||
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…
Reference in a new issue