Skip to content

Commit

Permalink
fix(ui): missing Heal references in control panel
Browse files Browse the repository at this point in the history
Ref: #3316
  • Loading branch information
robertsLando committed Oct 2, 2023
1 parent a97283c commit 59f72cb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
10 changes: 6 additions & 4 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,7 +361,7 @@ export default {
this.expandedNode = null
this.expandedNodeDialog = false
},
getHealIcon(status) {
getRebuildRoutesIcon(status) {
switch (status) {
case 'done':
return { icon: 'done', color: 'green' }
Expand Down Expand Up @@ -401,14 +403,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 59f72cb

Please sign in to comment.