1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-11 06:39:15 +00:00

Add tooltip

This commit is contained in:
TwinProduction
2021-01-25 20:54:57 -05:00
parent 668ed3b1a2
commit 67a3e4e330
6 changed files with 172 additions and 19 deletions

View File

@@ -12,7 +12,7 @@
</div>
<div id="results">
<slot v-for="serviceGroup in serviceGroups" :key="serviceGroup">
<ServiceGroup :services="serviceGroup.services" :name="serviceGroup.name" />
<ServiceGroup :services="serviceGroup.services" :name="serviceGroup.name" @showTooltip="showTooltip" />
</slot>
</div>
</div>
@@ -28,7 +28,6 @@ export default {
ServiceGroup
},
props: {
maximumNumberOfResults: Number,
showStatusOnHover: Boolean,
serviceStatuses: Object
},
@@ -54,6 +53,9 @@ export default {
serviceGroups.push({name: 'undefined', services: outputByGroup['undefined']})
}
this.serviceGroups = serviceGroups;
},
showTooltip(result, event) {
this.$emit('showTooltip', result, event);
}
},
watch: {