2022-05-17 14:50:56 +03:00
|
|
|
<div class="gh-dashboard-minichart gh-dashboard-mix {{if this.isChartCadence 'is-cadence'}}">
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-content">
|
|
|
|
<div class="gh-dashboard-data">
|
|
|
|
<Dashboard::Parts::Metric
|
2022-09-24 18:00:05 +03:00
|
|
|
@label="Paid mix" />
|
2022-04-26 20:54:52 +03:00
|
|
|
|
2022-05-12 14:20:44 +03:00
|
|
|
{{#if this.isChartCadence}}
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-legend">
|
|
|
|
<div class="gh-dashboard-legend-item">Monthly</div>
|
|
|
|
<div class="gh-dashboard-legend-item">Annual</div>
|
2022-05-12 14:20:44 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-05-17 14:50:56 +03:00
|
|
|
<div class="gh-dashboard-chart" {{did-insert this.loadCharts}}>
|
2022-05-12 14:20:44 +03:00
|
|
|
{{#if this.loading}}
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-chart-loading">
|
2022-05-12 14:20:44 +03:00
|
|
|
<div class="gh-loading-spinner"></div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-chart-container">
|
|
|
|
<div class="gh-dashboard-chart-box">
|
2022-05-12 14:20:44 +03:00
|
|
|
<EmberChart
|
|
|
|
@type={{this.chartType}}
|
|
|
|
@data={{this.chartData}}
|
|
|
|
@options={{this.chartOptions}}
|
2022-09-24 18:00:05 +03:00
|
|
|
@height={{110}} />
|
2022-04-26 20:54:52 +03:00
|
|
|
</div>
|
2022-04-27 16:40:38 +03:00
|
|
|
|
2022-05-17 10:34:34 +03:00
|
|
|
<div id="gh-dashboard-mix-tooltip" class="gh-dashboard-tooltip">
|
|
|
|
<div class="gh-dashboard-tooltip-value">
|
2022-05-12 14:20:44 +03:00
|
|
|
-
|
|
|
|
</div>
|
2022-09-24 18:00:05 +03:00
|
|
|
</div>
|
2022-05-12 14:20:44 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-04-27 16:40:38 +03:00
|
|
|
</div>
|
|
|
|
|
2022-04-26 16:52:46 +03:00
|
|
|
{{#if this.hasMultipleTiers }}
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-select">
|
2022-04-26 16:52:46 +03:00
|
|
|
<PowerSelect
|
|
|
|
@selected={{this.selectedModeOption}}
|
|
|
|
@options={{this.modeOptions}}
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
@onChange={{this.onSwitchMode}}
|
2022-09-24 18:00:05 +03:00
|
|
|
@triggerComponent={{component "gh-power-select/trigger"}}
|
2022-04-26 16:52:46 +03:00
|
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
2022-05-11 16:32:55 +03:00
|
|
|
@dropdownClass="gh-contentfilter-menu-dropdown is-narrow"
|
2022-04-26 16:52:46 +03:00
|
|
|
@matchTriggerWidth={{false}}
|
2022-05-17 17:04:55 +03:00
|
|
|
@horizontalPosition="right"
|
2022-04-26 16:52:46 +03:00
|
|
|
as |option|
|
|
|
|
>
|
|
|
|
{{#if option.name}}{{option.name}}{{else}}<span class="red">Unknown option</span>{{/if}}
|
|
|
|
</PowerSelect>
|
2022-04-20 15:43:11 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|