Skip to content

Commit

Permalink
fix(ui): move firmware update to fw version column
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Dec 29, 2021
1 parent 6238696 commit fb59d33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
23 changes: 14 additions & 9 deletions src/components/nodes-table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,20 @@
</div>
<div v-else></div>
</template>
<template v-slot:[`item.firmwareUpdate`]="{ item }">
<v-progress-circular
v-if="item.firmwareUpdate"
:value="item.firmwareUpdate.progress"
size="40"
color="primary"
>
<span class="caption">{{ item.firmwareUpdate.progress }}</span>
</v-progress-circular>
<template v-slot:[`item.firmwareVersion`]="{ item }">
<div style="text-align: center">
<v-progress-circular
v-if="item.firmwareUpdate"
:value="item.firmwareUpdate.progress"
size="40"
color="primary"
>
<span class="caption">{{
item.firmwareUpdate.progress
}}</span>
</v-progress-circular>
<div v-else>v{{ item.firmwareVersion }}</div>
</div>
</template>
<template v-slot:[`item.lastActive`]="{ item }">
<v-tooltip bottom>
Expand Down
1 change: 0 additions & 1 deletion src/components/nodes-table/nodes-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ export default {
},
},
healProgress: { type: 'string', label: 'Heal' },
firmwareUpdate: { type: 'string', label: 'FW Update' },
interviewStage: { type: 'string', label: 'Interview' },
lastActive: {
type: 'date',
Expand Down

0 comments on commit fb59d33

Please sign in to comment.