mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Gate graph display on fsrs status
This commit is contained in:
parent
8b849dd629
commit
2126ff9a16
5 changed files with 5 additions and 3 deletions
|
@ -154,6 +154,7 @@ message GraphsResponse {
|
||||||
ReviewCountsAndTimes reviews = 9;
|
ReviewCountsAndTimes reviews = 9;
|
||||||
uint32 rollover_hour = 10;
|
uint32 rollover_hour = 10;
|
||||||
Retrievability retrievability = 12;
|
Retrievability retrievability = 12;
|
||||||
|
bool fsrs = 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GraphPreferences {
|
message GraphPreferences {
|
||||||
|
|
|
@ -75,6 +75,7 @@ impl Collection {
|
||||||
card_counts: Some(ctx.card_counts()),
|
card_counts: Some(ctx.card_counts()),
|
||||||
rollover_hour: self.rollover_for_current_scheduler()? as u32,
|
rollover_hour: self.rollover_for_current_scheduler()? as u32,
|
||||||
retrievability: Some(ctx.retrievability()),
|
retrievability: Some(ctx.retrievability()),
|
||||||
|
fsrs: self.get_config_bool(BoolKey::Fsrs),
|
||||||
};
|
};
|
||||||
Ok(resp)
|
Ok(resp)
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
const subtitle = tr.statisticsCardDifficultySubtitle();
|
const subtitle = tr.statisticsCardDifficultySubtitle();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if histogramData}
|
{#if sourceData?.fsrs}
|
||||||
<Graph {title} {subtitle}>
|
<Graph {title} {subtitle}>
|
||||||
<HistogramGraph data={histogramData} />
|
<HistogramGraph data={histogramData} />
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
const subtitle = tr.statisticsCardEaseSubtitle();
|
const subtitle = tr.statisticsCardEaseSubtitle();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if histogramData}
|
{#if !(sourceData?.fsrs ?? false)}
|
||||||
<Graph {title} {subtitle}>
|
<Graph {title} {subtitle}>
|
||||||
<HistogramGraph data={histogramData} />
|
<HistogramGraph data={histogramData} />
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
const subtitle = tr.statisticsRetrievabilitySubtitle();
|
const subtitle = tr.statisticsRetrievabilitySubtitle();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if histogramData}
|
{#if sourceData?.fsrs}
|
||||||
<Graph {title} {subtitle}>
|
<Graph {title} {subtitle}>
|
||||||
<HistogramGraph data={histogramData} />
|
<HistogramGraph data={histogramData} />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue