diff --git a/ts/lib/components/TitledContainer.svelte b/ts/lib/components/TitledContainer.svelte index 98983940a..70e4a078c 100644 --- a/ts/lib/components/TitledContainer.svelte +++ b/ts/lib/components/TitledContainer.svelte @@ -12,7 +12,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html export { className as class }; export let title: string; - export let onHelpClick: ((_e: MouseEvent | KeyboardEvent) => void) | null = null; + export let onTitleClick: ((_e: MouseEvent | KeyboardEvent) => void) | null = null;
-

- {title} -

- {#if onHelpClick} -
- -
+

+ {title} +

+ + {:else} +

+ {title} +

{/if} +
+ +
diff --git a/ts/routes/graphs/Graph.svelte b/ts/routes/graphs/Graph.svelte index 1dafed4bb..2c509639e 100644 --- a/ts/routes/graphs/Graph.svelte +++ b/ts/routes/graphs/Graph.svelte @@ -8,7 +8,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html // When title is null (default), the graph is inlined, not having TitledContainer wrapper. export let title: string | null = null; export let subtitle: string | null = null; - export let onHelpClick: ((_e: MouseEvent | KeyboardEvent) => void) | null = null; + export let onTitleClick: ((_e: MouseEvent | KeyboardEvent) => void) | null = null; {#if title == null} @@ -19,7 +19,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html {:else} - +
{#if subtitle} diff --git a/ts/routes/graphs/TrueRetention.svelte b/ts/routes/graphs/TrueRetention.svelte index 9af2b4d85..6b89ab9b8 100644 --- a/ts/routes/graphs/TrueRetention.svelte +++ b/ts/routes/graphs/TrueRetention.svelte @@ -57,12 +57,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html const title = tr.statisticsTrueRetentionTitle(); const subtitle = tr.statisticsTrueRetentionSubtitle(); - const onHelpClick = () => { + const onTitleClick = () => { openHelpModal(Object.keys(retentionHelp).indexOf("trueRetention")); }; - +