diff --git a/ts/graphs/AddedGraph.svelte b/ts/graphs/AddedGraph.svelte
index ed30aec2b..1f541fd99 100644
--- a/ts/graphs/AddedGraph.svelte
+++ b/ts/graphs/AddedGraph.svelte
@@ -10,13 +10,16 @@
import GraphRangeRadios from "./GraphRangeRadios.svelte";
import TableData from "./TableData.svelte";
import { createEventDispatcher } from "svelte";
+ import type { PreferenceStore } from "./preferences";
export let sourceData: pb.BackendProto.GraphsOut | null = null;
export let i18n: I18n;
+ export let preferences: PreferenceStore;
let histogramData = null as HistogramData | null;
let tableData: TableDatum[] = [];
let graphRange: GraphRange = GraphRange.Month;
+ let { browserLinksSupported } = preferences;
const dispatch = createEventDispatcher();
@@ -26,7 +29,13 @@
}
$: if (addedData) {
- [histogramData, tableData] = buildHistogram(addedData, graphRange, i18n, dispatch);
+ [histogramData, tableData] = buildHistogram(
+ addedData,
+ graphRange,
+ i18n,
+ dispatch,
+ $browserLinksSupported
+ );
}
const title = i18n.tr(i18n.TR.STATISTICS_ADDED_TITLE);
@@ -42,7 +51,7 @@
-
+
diff --git a/ts/graphs/EaseGraph.svelte b/ts/graphs/EaseGraph.svelte
index 559334e9f..7a6e24c83 100644
--- a/ts/graphs/EaseGraph.svelte
+++ b/ts/graphs/EaseGraph.svelte
@@ -7,17 +7,25 @@
import type { TableDatum } from "./graph-helpers";
import TableData from "./TableData.svelte";
import { createEventDispatcher } from "svelte";
+ import type { PreferenceStore } from "./preferences";
export let sourceData: pb.BackendProto.GraphsOut | null = null;
export let i18n: I18n;
+ export let preferences: PreferenceStore;
const dispatch = createEventDispatcher();
let histogramData = null as HistogramData | null;
let tableData: TableDatum[] = [];
+ let { browserLinksSupported } = preferences;
$: if (sourceData) {
- [histogramData, tableData] = prepareData(gatherData(sourceData), i18n, dispatch);
+ [histogramData, tableData] = prepareData(
+ gatherData(sourceData),
+ i18n,
+ dispatch,
+ $browserLinksSupported
+ );
}
const title = i18n.tr(i18n.TR.STATISTICS_CARD_EASE_TITLE);
@@ -29,7 +37,7 @@
{subtitle}
-
+
diff --git a/ts/graphs/FutureDue.svelte b/ts/graphs/FutureDue.svelte
index ffb27fe75..e7b504eda 100644
--- a/ts/graphs/FutureDue.svelte
+++ b/ts/graphs/FutureDue.svelte
@@ -10,9 +10,11 @@
import GraphRangeRadios from "./GraphRangeRadios.svelte";
import TableData from "./TableData.svelte";
import { createEventDispatcher } from "svelte";
+ import type { PreferenceStore } from "./preferences";
export let sourceData: pb.BackendProto.GraphsOut | null = null;
export let i18n: I18n;
+ export let preferences: PreferenceStore;
const dispatch = createEventDispatcher();
@@ -21,6 +23,7 @@
let tableData: TableDatum[] = [] as any;
let backlog: boolean = true;
let graphRange: GraphRange = GraphRange.Month;
+ let { browserLinksSupported } = preferences;
$: if (sourceData) {
graphData = gatherData(sourceData);
@@ -33,6 +36,7 @@
backlog,
i18n,
dispatch,
+ $browserLinksSupported
));
}
@@ -57,7 +61,7 @@
-
+
diff --git a/ts/graphs/HistogramGraph.svelte b/ts/graphs/HistogramGraph.svelte
index 86347ad58..d178d33af 100644
--- a/ts/graphs/HistogramGraph.svelte
+++ b/ts/graphs/HistogramGraph.svelte
@@ -1,5 +1,4 @@