File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Frontend/src/components/monitoring Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
import SortableColumn from " ../SortableColumn.vue" ;
3
3
import { SortInfo } from " ../SortInfo" ;
4
4
5
- withDefaults (
5
+ const props = withDefaults (
6
6
defineProps <{
7
7
columnName: string ;
8
8
columnSort: string ;
@@ -15,11 +15,12 @@ withDefaults(
15
15
);
16
16
17
17
const activeColumn = defineModel <SortInfo >({ required: true });
18
+ const defaultAscending = props .isFirstCol ? true : undefined ;
18
19
</script >
19
20
20
21
<template >
21
22
<div role =" columnheader" :aria-label =" columnName" :class =" isFirstCol ? 'table-first-col' : 'table-col'" >
22
- <SortableColumn :sort-by =" columnSort" v-model =" activeColumn" :default-ascending =" true " v-tippy =" toolTip" >
23
+ <SortableColumn :sort-by =" columnSort" v-model =" activeColumn" :default-ascending =" defaultAscending " v-tippy =" toolTip" >
23
24
{{ displayName }}<template v-if =" displayUnit " #unit >  ; {{ displayUnit }}</template >
24
25
</SortableColumn >
25
26
</div >
You can’t perform that action at this time.
0 commit comments