mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +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
17 lines
450 B
Handlebars
17 lines
450 B
Handlebars
<h4
|
|
class="gh-dashboard5-metric is-main"
|
|
{{did-insert this.loadCharts}}
|
|
{{did-update this.loadCharts @days}}
|
|
>
|
|
Total paid
|
|
</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}} |