Skip to content

Commit

Permalink
Disable TTD for no timeseries dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaHegde committed Dec 10, 2024
1 parent 6250069 commit 97ac340
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
isMeasureExpanded = true;
}
};
$: useDiv = isMeasureExpanded || !withTimeseries;
</script>

<Tooltip
Expand All @@ -106,17 +107,17 @@
<BigNumberTooltipContent
slot="tooltip-content"
{measure}
{isMeasureExpanded}
isMeasureExpanded={useDiv}
value={tooltipValue}
/>

<svelte:element
this={isMeasureExpanded ? "div" : "a"}
role={isMeasureExpanded ? "presentation" : "button"}
tabindex={isMeasureExpanded ? -1 : 0}
this={useDiv ? "div" : "a"}
role={useDiv ? "presentation" : "button"}
tabindex={useDiv ? -1 : 0}
class="group big-number"
class:shadow-grad={!isMeasureExpanded}
class:cursor-pointer={!isMeasureExpanded}
class:shadow-grad={!useDiv}
class:cursor-pointer={!useDiv}
on:click={modified({
shift: () => shiftClickHandler(copyValue),
click: () => {
Expand Down

0 comments on commit 97ac340

Please sign in to comment.