Skip to content

Commit

Permalink
fix(ui): missing Heal references in control panel (#3318)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando authored Oct 2, 2023
1 parent a97283c commit a13d26f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
20 changes: 5 additions & 15 deletions src/components/nodes-table/SmartView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@
/>

<rich-value
:value="healRichValue(item)"
:value="
rebuildRoutesRichValue(item)
"
/>

<rich-value
Expand Down Expand Up @@ -359,18 +361,6 @@ export default {
this.expandedNode = null
this.expandedNodeDialog = false
},
getHealIcon(status) {
switch (status) {
case 'done':
return { icon: 'done', color: 'green' }
case 'failed':
return { icon: 'error', color: 'red' }
case 'skipped':
return { icon: 'next_plan', color: 'blue' }
}
return undefined
},
getProgress(node) {
return node.firmwareUpdate
? Math.round(
Expand Down Expand Up @@ -401,14 +391,14 @@ export default {
return v
},
healRichValue(node) {
rebuildRoutesRichValue(node) {
const progress = node.rebuildRoutesProgress || 'done'
let v = {
align: 'center',
icon: '',
iconStyle: `color: ${colors.grey.base}`,
description: 'Heal ' + progress,
description: 'Rebuild routes ' + progress,
size: 18,
}
Expand Down
9 changes: 6 additions & 3 deletions src/components/nodes-table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@

<v-tooltip
v-else-if="
getHealIcon(item.rebuildRoutesProgress) !== undefined
getRebuildRoutesIcon(item.rebuildRoutesProgress) !==
undefined
"
bottom
>
Expand All @@ -219,10 +220,12 @@
v-on="on"
class="ml-3"
v-text="
getHealIcon(item.rebuildRoutesProgress).icon
getRebuildRoutesIcon(item.rebuildRoutesProgress)
.icon
"
:color="
getHealIcon(item.rebuildRoutesProgress).color
getRebuildRoutesIcon(item.rebuildRoutesProgress)
.color
"
></v-icon>
</template>
Expand Down
7 changes: 5 additions & 2 deletions src/components/nodes-table/nodes-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ export default {
return v
},
},
rebuildRoutesProgress: { type: 'string', label: 'Heal' },
rebuildRoutesProgress: {
type: 'string',
label: 'Rebuild routes',
},
interviewStage: { type: 'string', label: 'Interview' },
lastActive: {
type: 'date',
Expand All @@ -216,7 +219,7 @@ export default {
? this.expanded.filter((i) => i !== item)
: [...this.expanded, item]
},
getHealIcon(status) {
getRebuildRoutesIcon(status) {
switch (status) {
case 'done':
return { icon: 'done', color: 'green' }
Expand Down

0 comments on commit a13d26f

Please sign in to comment.