mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix Diagnosis first run
This commit is contained in:
parent
7b33b223b6
commit
20f1ae62f7
1 changed files with 5 additions and 4 deletions
|
@ -86,7 +86,7 @@
|
|||
</b-button>
|
||||
<b-button
|
||||
v-if="details"
|
||||
size="sm" variant="light" class="ml-lg-2 mt-2 mt-lg-0"
|
||||
size="sm" variant="outline-dark" class="ml-lg-2 mt-2 mt-lg-0"
|
||||
v-b-toggle="'collapse-' + id + '-item-' + i"
|
||||
>
|
||||
<icon iname="level-down" /> <span v-t="'details'" />
|
||||
|
@ -125,13 +125,14 @@ export default {
|
|||
|
||||
methods: {
|
||||
fetchData () {
|
||||
api.get('diagnosis/show?full').then(({ reports }) => {
|
||||
if (!Array.isArray(reports)) {
|
||||
api.get('diagnosis/show?full').then((data) => {
|
||||
if (data === null) {
|
||||
this.reports = null
|
||||
return
|
||||
}
|
||||
|
||||
for (var report of reports) {
|
||||
const reports = data.reports
|
||||
for (const report of reports) {
|
||||
report.warnings = 0
|
||||
report.errors = 0
|
||||
report.ignoreds = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue