Ghost/ghost/admin/app/components/dashboard/v5/chart-total-members.hbs
Simon Backx 5b120d5574 Updated member count charts to use the new Stats API
refs https://github.com/TryGhost/Team/issues/1443
refs https://github.com/TryGhost/Team/issues/1458
refs https://github.com/TryGhost/Team/issues/1459

- Includes the new paid members chart (deltas)
- Reused the counts from the stats endpoint, instead of doing separate calls to the members api browse endpoint.
2022-03-31 16:09:41 +02:00

17 lines
542 B
Handlebars

{{!-- <h4
class="gh-dashboard5-metric is-main"
{{did-insert this.loadCharts}}
{{did-update this.loadCharts @days}}
>
Total members
</h4> --}}
{{#if this.loading}}
<div {{did-insert this.loadCharts}} class="gh-dashboard5-loading" style={{html-safe (concat "height: " this.chartHeight "px;")}}/>
{{else}}
<Dashboard::V5::ChartMembersCountsInsert />
<EmberChart
@type={{this.chartType}}
@data={{this.chartData}}
@options={{this.chartOptions}}
@height={{this.chartHeight}} />
{{/if}}