mirror of
https://github.com/TwiN/gatus.git
synced 2026-02-04 11:46:46 +00:00
@@ -175,7 +175,9 @@ const handleMouseLeave = (result, event) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleClick = (result, event, index) => {
|
const handleClick = (result, event, index) => {
|
||||||
// Toggle selection
|
// Clear selections in other cards first
|
||||||
|
window.dispatchEvent(new CustomEvent('clear-data-point-selection'))
|
||||||
|
// Then toggle this card's selection
|
||||||
if (selectedResultIndex.value === index) {
|
if (selectedResultIndex.value === index) {
|
||||||
selectedResultIndex.value = null
|
selectedResultIndex.value = null
|
||||||
emit('showTooltip', null, event, 'click')
|
emit('showTooltip', null, event, 'click')
|
||||||
|
|||||||
@@ -161,7 +161,9 @@ const handleMouseLeave = (result, event) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleClick = (result, event, index) => {
|
const handleClick = (result, event, index) => {
|
||||||
// Toggle selection
|
// Clear selections in other cards first
|
||||||
|
window.dispatchEvent(new CustomEvent('clear-data-point-selection'))
|
||||||
|
// Then toggle this card's selection
|
||||||
if (selectedResultIndex.value === index) {
|
if (selectedResultIndex.value === index) {
|
||||||
selectedResultIndex.value = null
|
selectedResultIndex.value = null
|
||||||
emit('showTooltip', null, event, 'click')
|
emit('showTooltip', null, event, 'click')
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user