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 22import SortableColumn from " ../SortableColumn.vue" ;
33import { SortInfo } from " ../SortInfo" ;
44
5- withDefaults (
5+ const props = withDefaults (
66 defineProps <{
77 columnName: string ;
88 columnSort: string ;
@@ -15,11 +15,12 @@ withDefaults(
1515);
1616
1717const activeColumn = defineModel <SortInfo >({ required: true });
18+ const defaultAscending = props .isFirstCol ? true : undefined ;
1819 </script >
1920
2021<template >
2122 <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" >
2324 {{ displayName }}<template v-if =" displayUnit " #unit >  ; {{ displayUnit }}</template >
2425 </SortableColumn >
2526 </div >
You can’t perform that action at this time.
0 commit comments