diff --git a/ts/lib/components/TitledContainer.svelte b/ts/lib/components/TitledContainer.svelte
index 70e4a078c..98983940a 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 onTitleClick: ((_e: MouseEvent | KeyboardEvent) => void) | null = null;
+ export let onHelpClick: ((_e: MouseEvent | KeyboardEvent) => void) | null = null;
- {#if onTitleClick}
-
+ {title}
+
+ {#if onHelpClick}
+
-
- {title}
-
-
- {:else}
-
- {title}
-
+
+
{/if}
-
-
-
diff --git a/ts/routes/graphs/Graph.svelte b/ts/routes/graphs/Graph.svelte
index 2c509639e..1dafed4bb 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 onTitleClick: ((_e: MouseEvent | KeyboardEvent) => void) | null = null;
+ export let onHelpClick: ((_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 6b89ab9b8..9af2b4d85 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 onTitleClick = () => {
+ const onHelpClick = () => {
openHelpModal(Object.keys(retentionHelp).indexOf("trueRetention"));
};
-
+