File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
core/frontend/src/components/parameter-editor Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 51
51
<v-col class =" virtual-table-cell name-cell" >
52
52
<v-tooltip bottom >
53
53
<template #activator =" { on } " >
54
- <div v-on =" on" >
54
+ <div :style = " !item.current ? { color: 'var(--v-warning-base)' } : {} " v-on =" on" >
55
55
{{ item.name }}
56
56
</div >
57
57
</template >
58
58
<span >
59
- {{ item.current?.description ?? 'No description provided' }}
59
+ {{
60
+ item.current
61
+ ? item.current?.description ?? 'No description provided'
62
+ : 'Parameter not found in Autopilot data, most likely will not be written to the vehicle.'
63
+ }}
60
64
</span >
61
65
</v-tooltip >
62
66
</v-col >
63
67
<v-col class =" virtual-table-cell" >
64
- <v-tooltip bottom >
68
+ <v-tooltip :disabled = " !item.current " bottom >
65
69
<template #activator =" { on } " >
66
70
<div
67
71
class =" large-text-cell"
68
72
v-on =" on"
69
73
>
70
- {{ printParamWithUnit(item.current) }}
74
+ {{ item.current ? printParamWithUnit(item.current) : 'N/A' }}
71
75
</div >
72
76
</template >
73
77
<span >
74
- {{ printParamWithUnit(item.current) }}
78
+ {{ item.current ? printParamWithUnit(item.current) : 'N/A' }}
75
79
</span >
76
80
</v-tooltip >
77
81
</v-col >
82
86
class =" large-text-cell"
83
87
v-on =" on"
84
88
>
85
- {{ printParamWithUnit(item.new) }}
89
+ {{ item.current ? printParamWithUnit(item.new) : item.new.value }}
86
90
</div >
87
91
</template >
88
92
<span >
89
- {{ printParamWithUnit(item.new) }}
93
+ {{ item.current ? printParamWithUnit(item.new) : item.new.value }}
90
94
</span >
91
95
</v-tooltip >
92
96
</v-col >
@@ -294,7 +298,7 @@ export default Vue.extend({
294
298
295
299
return {
296
300
name ,
297
- current: currentParameter ,
301
+ current: currentParameter ?? undefined ,
298
302
new: { ... currentParameter , value },
299
303
}
300
304
})
You can’t perform that action at this time.
0 commit comments