@@ -10,7 +10,6 @@ import OnOffSwitch from "../OnOffSwitch.vue";
10
10
import routeLinks from " @/router/routeLinks" ;
11
11
import { useShowToast } from " @/composables/toast" ;
12
12
import { TYPE } from " vue-toastification" ;
13
- import { Tippy } from " vue-tippy" ;
14
13
import { useHeartbeatInstancesStore , ColumnNames } from " @/stores/HeartbeatInstancesStore" ;
15
14
import { EndpointsView } from " @/resources/EndpointView" ;
16
15
import endpointSettingsClient from " @/components/heartbeats/endpointSettingsClient" ;
@@ -19,6 +18,7 @@ import ConfirmDialog from "@/components/ConfirmDialog.vue";
19
18
import LastHeartbeat from " @/components/heartbeats/LastHeartbeat.vue" ;
20
19
import FilterInput from " ../FilterInput.vue" ;
21
20
import ResultsCount from " ../ResultsCount.vue" ;
21
+ import ColumnHelp from " ./ColumnHelp.vue" ;
22
22
23
23
enum Operation {
24
24
Mute = " mute" ,
@@ -167,25 +167,19 @@ async function toggleAlerts(instance: EndpointsView) {
167
167
</div >
168
168
<div role =" columnheader" :aria-label =" ColumnNames.MuteToggle" class =" col-2 centre" >
169
169
<SortableColumn :sort-by =" ColumnNames.MuteToggle" v-model =" sortByInstances" >Mute Alerts</SortableColumn >
170
- <tippy max-width =" 400px" >
171
- <i :style =" { fontSize: '1.1em', marginLeft: '0.25em' }" class =" fa fa-info-circle text-primary" />
172
- <template #content >
173
- <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 >
174
- </template >
175
- </tippy >
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 >
176
173
</div >
177
174
<div role =" columnheader" aria-label =" actions" class =" col-1" >
178
175
<div >
179
- Actions
180
- <tippy max-width =" 400px" >
181
- <i :style =" { fontSize: '1.1em', marginLeft: '0.25em' }" class =" fa fa-info-circle text-primary" />
182
- <template #content >
183
- <div class =" d-flex align-items-center p-1" >
184
- <button type =" button" class =" btn btn-danger btn-ms text-nowrap me-3" @click =" deleteAllInstances()" ><i class =" fa fa-trash text-white" /> Delete</button >
185
- <span >Delete an instance when that instance has been decommissioned.</span >
186
- </div >
187
- </template >
188
- </tippy >
176
+ <span >Actions</span >
177
+ <ColumnHelp >
178
+ <div class =" d-flex align-items-center p-1" >
179
+ <button type =" button" class =" btn btn-danger btn-ms text-nowrap me-3" @click =" deleteAllInstances()" ><i class =" fa fa-trash text-white" /> Delete</button >
180
+ <span >Delete an instance when that instance has been decommissioned.</span >
181
+ </div >
182
+ </ColumnHelp >
189
183
</div >
190
184
</div >
191
185
</div >
0 commit comments