mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
a41785ae95
refs https://github.com/TryGhost/Team/issues/1443 - Also moved loading of charts outside of constructors to avoid infinite update loops in Ember - Random loading delay when using fake states
16 lines
452 B
Handlebars
16 lines
452 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 class="gh-dashboard5-loading" style={{html-safe (concat "height: " this.chartHeight "px;")}}/>
|
|
{{else}}
|
|
<EmberChart
|
|
@type={{this.chartType}}
|
|
@data={{this.chartData}}
|
|
@options={{this.chartOptions}}
|
|
@height={{this.chartHeight}} />
|
|
{{/if}} |