show sync status correctly

This commit is contained in:
sadnub
2020-09-10 13:26:40 -04:00
parent 5501e2bbbf
commit d586f44002
2 changed files with 8 additions and 2 deletions

View File

@@ -94,7 +94,11 @@
</q-td>
<q-td v-else></q-td>
<q-td>{{ props.row.name }}</q-td>
<q-td>{{ props.sync_status }}</q-td>
<q-td v-if="props.row.sync_status === 'notsynced'">Will sync on next agent checkin</q-td>
<q-td v-else-if="props.row.sync_status === 'synced'">Synced with agent</q-td>
<q-td
v-else-if="props.row.sync_status === 'pendingdeletion'"
>Pending deletion on agent</q-td>
<q-td v-if="props.row.retcode || props.row.stdout || props.row.stderr">
<span
style="cursor:pointer;color:blue;text-decoration:underline"

View File

@@ -49,7 +49,9 @@
<q-td v-else-if="props.row.status === 'failing'">
<q-badge color="negative">Failing</q-badge>
</q-td>
<q-td v-else>{{ props.row.sync_status }}</q-td>
<q-td v-else-if="props.row.sync_status === 'notsynced'">Will sync on next agent checkin</q-td>
<q-td v-else-if="props.row.sync_status === 'synced'">Synced with agent</q-td>
<q-td v-else-if="props.row.sync_status === 'pendingdeletion'">Pending deletion on agent</q-td>
<!-- more info -->
<q-td v-if="props.row.check_type === 'ping'">
<span