Skip to content

Commit 992a5d2

Browse files
Fixed delete button
1 parent f9aafd8 commit 992a5d2

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

src/Frontend/src/components/heartbeats/ColumnHelp.vue

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
<script setup lang="ts">
2+
import { defineProps } from "vue";
3+
4+
const props = withDefaults(
5+
defineProps<{
6+
interactive?: boolean;
7+
}>(),
8+
{
9+
interactive: false,
10+
}
11+
);
12+
</script>
13+
114
<template>
2-
<tippy max-width="400px">
15+
<tippy max-width="400px" :interactive="props.interactive">
316
<i class="fa fa-sm fa-info-circle text-primary ps-1" />
417
<template #content>
518
<slot />

src/Frontend/src/components/heartbeats/EndpointInstances.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,14 @@ async function toggleAlerts(instance: EndpointsView) {
171171
<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>
172172
</ColumnHelp>
173173
</div>
174-
<div role="columnheader" aria-label="actions" class="col-1">
175-
<div>
176-
<span>Actions</span>
177-
<ColumnHelp>
174+
<StandardColumn columnLabel="Actions">
175+
<ColumnHelp :interactive="true">
178176
<div class="d-flex align-items-center p-1">
179177
<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>
178+
<span style="text-transform: none">Delete an instance when that instance has been decommissioned.</span>
181179
</div>
182180
</ColumnHelp>
183-
</div>
184-
</div>
181+
</StandardColumn>
185182
</div>
186183
<no-data v-if="filteredValidInstances.length === 0" message="No endpoint instances found. For untracked endpoints, disconnected instances are automatically pruned.">
187184
<div v-if="totalValidInstances.length === 0" class="delete-all">

0 commit comments

Comments
 (0)