2022-04-26 16:52:46 +03:00
|
|
|
<div class="gh-dashboard5-minichart gh-dashboard5-mix {{if this.isChartTiers 'is-tiers'}}">
|
|
|
|
<div class="gh-dashboard5-data">
|
|
|
|
<Dashboard::v5::Parts::Metric
|
|
|
|
@label="Paid mix" />
|
|
|
|
|
|
|
|
{{#if this.isChartCadence}}
|
|
|
|
<div class="gh-dashboard5-legend">
|
|
|
|
<div class="gh-dashboard5-legend-item">Monthly</div>
|
|
|
|
<div class="gh-dashboard5-legend-item">Annual</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-04-20 15:43:11 +03:00
|
|
|
</div>
|
|
|
|
|
2022-04-26 16:52:46 +03:00
|
|
|
<div class="gh-dashboard5-chart" {{did-insert this.loadCharts}}>
|
|
|
|
{{#if this.loading}}
|
|
|
|
<div class="gh-dashboard5-chart-loading" style={{html-safe (concat "height: " this.chartHeight "px;")}}/>
|
|
|
|
{{else}}
|
|
|
|
<div class="gh-dashboard5-chart-container">
|
|
|
|
<EmberChart
|
|
|
|
@type={{this.chartType}}
|
|
|
|
@data={{this.chartData}}
|
2022-04-26 20:54:52 +03:00
|
|
|
@options={{this.chartOptions}} />
|
|
|
|
|
|
|
|
<div id="gh-dashboard5-mix-tooltip" class="gh-dashboard5-tooltip">
|
|
|
|
<div class="gh-dashboard5-tooltip-value">
|
|
|
|
-
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-26 16:52:46 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-04-20 15:43:11 +03:00
|
|
|
|
2022-04-26 16:52:46 +03:00
|
|
|
{{#if this.hasMultipleTiers }}
|
|
|
|
<div class="gh-dashboard5-select">
|
|
|
|
<PowerSelect
|
|
|
|
@selected={{this.selectedModeOption}}
|
|
|
|
@options={{this.modeOptions}}
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
@onChange={{this.onSwitchMode}}
|
|
|
|
@triggerComponent="gh-power-select/trigger"
|
|
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
|
|
|
@dropdownClass="gh-contentfilter-menu-dropdown"
|
|
|
|
@matchTriggerWidth={{false}}
|
|
|
|
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>
|