Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sebt3 committed Jan 20, 2024
1 parent e4dc141 commit 38a79cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions front/components/core/DefaultStatusView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function getConditionColor(cond) {
</div></template>
</q-field>
</div>
<div v-if="Object.keys(status).includes('phase') && typeof status['phase'] === 'string'">
<q-field label="Phase" stack-label borderless>
<div v-for="key in Object.keys(status).filter(k => typeof status[k] === 'string' && ['phase','latestImage','lastPushCommit', 'lastPushTime','lastAppliedRevision'].includes(key))" :key="key">
<q-field label="{{ key.charAt(0).toUpperCase() + key.slice(1) }}" stack-label borderless>
<template v-slot:prepend><q-icon name="far fa-chart-bar" /></template>
<template v-slot:control><div class="self-center full-width no-outline" tabindex="0"> {{ status['phase'] }}
<template v-slot:control><div class="self-center full-width no-outline" tabindex="0"> {{ status[key] }}
</div></template>
</q-field>
</div>
Expand Down

0 comments on commit 38a79cc

Please sign in to comment.