@@ -4,7 +4,7 @@ import { storeToRefs } from "pinia";
4
4
import { useRoute , useRouter } from " vue-router" ;
5
5
import { computed , onMounted , ref } from " vue" ;
6
6
import { EndpointStatus } from " @/resources/Heartbeat" ;
7
- import SortableColumn from " @/components/SortableColumn .vue" ;
7
+ import ColumnHeader from " @/components/ColumnHeader .vue" ;
8
8
import DataView from " @/components/DataView.vue" ;
9
9
import OnOffSwitch from " ../OnOffSwitch.vue" ;
10
10
import routeLinks from " @/router/routeLinks" ;
@@ -18,7 +18,6 @@ import ConfirmDialog from "@/components/ConfirmDialog.vue";
18
18
import LastHeartbeat from " @/components/heartbeats/LastHeartbeat.vue" ;
19
19
import FilterInput from " ../FilterInput.vue" ;
20
20
import ResultsCount from " ../ResultsCount.vue" ;
21
- import ColumnHelp from " ./ColumnHelp.vue" ;
22
21
23
22
enum Operation {
24
23
Mute = " mute" ,
@@ -159,26 +158,19 @@ async function toggleAlerts(instance: EndpointsView) {
159
158
<section role =" table" aria-label =" endpoint-instances" >
160
159
<!-- Table headings-->
161
160
<div role =" row" aria-label =" column-headers" class =" row table-head-row" :style =" { borderTop: 0 }" >
162
- <div role =" columnheader" :aria-label =" ColumnNames.InstanceName" class =" col-6" >
163
- <SortableColumn :sort-by =" ColumnNames.InstanceName" v-model =" sortByInstances" :default-ascending =" true" >Host Name</SortableColumn >
164
- </div >
165
- <div role =" columnheader" :aria-label =" ColumnNames.LastHeartbeat" class =" col-2" >
166
- <SortableColumn :sort-by =" ColumnNames.LastHeartbeat" v-model =" sortByInstances" >Last Heartbeat</SortableColumn >
167
- </div >
168
- <div role =" columnheader" :aria-label =" ColumnNames.MuteToggle" class =" col-2 centre" >
169
- <SortableColumn :sort-by =" ColumnNames.MuteToggle" v-model =" sortByInstances" >Mute Alerts</SortableColumn >
170
- <ColumnHelp >
171
- <span >Mute an instance when you are planning to take the instance offline to do maintenance or some other reason. This will prevent alerts on the dashboard.</span >
172
- </ColumnHelp >
173
- </div >
174
- <StandardColumn columnLabel =" Actions" >
175
- <ColumnHelp :interactive =" true" >
176
- <div class =" d-flex align-items-center p-1" >
177
- <button type =" button" class =" btn btn-danger btn-ms text-nowrap me-3" @click =" deleteAllInstances()" ><i class =" fa fa-trash text-white" /> Delete</button >
161
+ <ColumnHeader :name =" ColumnNames.InstanceName" label =" Host Name" columnClass =" col-6" v-model =" sortByInstances" sortable default-ascending />
162
+ <ColumnHeader :name =" ColumnNames.LastHeartbeat" label =" Last Heartbeat" columnClass =" col-2" :sortable =" true" v-model =" sortByInstances" />
163
+ <ColumnHeader :name =" ColumnNames.MuteToggle" label =" Mute Alerts" columnClass =" col-2 centre" v-model =" sortByInstances" >
164
+ <template #help >Mute an instance when you are planning to take the instance offline to do maintenance or some other reason. This will prevent alerts on the dashboard.</template >
165
+ </ColumnHeader >
166
+ <ColumnHeader name =" actions" label =" Actions" columnClass =" col-1" :sortable =" false" :interactive-help =" true" v-model =" sortByInstances" >
167
+ <template #help >
168
+ <div class =" d-flex align-items-center p-1" >
169
+ <button type =" button" class =" btn btn-danger btn-ms text-nowrap me-3" @click =" deleteAllInstances()" ><i class =" fa fa-trash text-white" /> Delete</button >
178
170
<span style =" text-transform : none " >Delete an instance when that instance has been decommissioned.</span >
179
- </div >
180
- </ ColumnHelp >
181
- </StandardColumn >
171
+ </div >
172
+ </ template >
173
+ </ColumnHeader >
182
174
</div >
183
175
<no-data v-if =" filteredValidInstances.length === 0" message =" No endpoint instances found. For untracked endpoints, disconnected instances are automatically pruned." >
184
176
<div v-if =" totalValidInstances.length === 0" class =" delete-all" >
0 commit comments