mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix: Diagnosis ignored count and display
This commit is contained in:
parent
94956c57ee
commit
e87d76eea6
1 changed files with 10 additions and 5 deletions
|
@ -188,15 +188,19 @@ export default {
|
|||
item.issue = false
|
||||
|
||||
if (item.ignored) {
|
||||
item.variant = 'light'
|
||||
report.ignoreds++
|
||||
} else if (status === 'warning') {
|
||||
}
|
||||
if (status === 'warning') {
|
||||
item.issue = true
|
||||
report.warnings++
|
||||
if (!item.ignored) {
|
||||
report.warnings++
|
||||
}
|
||||
} else if (status === 'error') {
|
||||
item.variant = 'danger'
|
||||
item.issue = true
|
||||
report.errors++
|
||||
if (!item.ignored) {
|
||||
report.errors++
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -232,10 +236,11 @@ export default {
|
|||
item.ignored = action === 'ignore'
|
||||
if (item.ignored) {
|
||||
report[item.status.toLowerCase() + 's']--
|
||||
report.ignoreds++
|
||||
} else {
|
||||
report[item.status.toLowerCase() + 's']++
|
||||
report.ignoreds--
|
||||
}
|
||||
this.formatReportItem(report, item)
|
||||
})
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue