2022-05-17 10:34:34 +03:00
|
|
|
<section class="gh-dashboard-section gh-dashboard-engagement">
|
|
|
|
<article {{did-insert this.loadCharts}} class="gh-dashboard-box">
|
|
|
|
<Dashboard::Parts::Metric
|
2022-04-20 15:43:11 +03:00
|
|
|
@label="Engagement" />
|
|
|
|
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-columns">
|
|
|
|
<div class="gh-dashboard-column gh-dashboard-engagement-30days">
|
|
|
|
<Dashboard::Parts::Metric
|
2022-04-20 15:43:11 +03:00
|
|
|
@label="Engaged in the last 30 days"
|
2022-04-12 15:29:10 +03:00
|
|
|
@value={{this.data30Days}}
|
2022-04-20 15:43:11 +03:00
|
|
|
@secondary={{true}}
|
2022-04-12 15:29:10 +03:00
|
|
|
/>
|
|
|
|
</div>
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-column gh-dashboard-engagement-7days">
|
|
|
|
<Dashboard::Parts::Metric
|
2022-04-20 15:43:11 +03:00
|
|
|
@label="Engaged in the last 7 days"
|
2022-04-12 15:29:10 +03:00
|
|
|
@value={{this.data7Days}}
|
2022-04-20 15:43:11 +03:00
|
|
|
@secondary={{true}}
|
|
|
|
/>
|
|
|
|
</div>
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-column gh-dashboard-engagement-subscribers">
|
|
|
|
<Dashboard::Parts::Metric
|
2022-04-20 15:43:11 +03:00
|
|
|
@label="Newsletter subscribers"
|
|
|
|
@value={{this.dataSubscribers}}
|
|
|
|
@secondary={{true}}
|
2022-04-12 15:29:10 +03:00
|
|
|
/>
|
|
|
|
</div>
|
2022-03-29 18:53:50 +03:00
|
|
|
</div>
|
2022-04-12 15:29:10 +03:00
|
|
|
</article>
|
2022-03-29 18:53:50 +03:00
|
|
|
|
2022-04-22 17:27:49 +03:00
|
|
|
{{#if this.hasPaidTiers}}
|
2022-05-17 10:34:34 +03:00
|
|
|
<div class="gh-dashboard-select">
|
2022-04-22 17:27:49 +03:00
|
|
|
<PowerSelect
|
|
|
|
@selected={{this.selectedStatusOption}}
|
|
|
|
@options={{this.statusOptions}}
|
|
|
|
@searchEnabled={{false}}
|
|
|
|
@onChange={{this.onSwitchStatus}}
|
|
|
|
@triggerComponent="gh-power-select/trigger"
|
|
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
2022-05-11 16:32:55 +03:00
|
|
|
@dropdownClass="gh-contentfilter-menu-dropdown is-narrow"
|
2022-04-22 17:27:49 +03:00
|
|
|
@matchTriggerWidth={{false}}
|
2022-05-17 17:04:55 +03:00
|
|
|
@horizontalPosition="right"
|
2022-04-22 17:27:49 +03:00
|
|
|
as |option|
|
|
|
|
>
|
|
|
|
{{#if option.name}}{{option.name}}{{else}}<span class="red">Unknown option</span>{{/if}}
|
|
|
|
</PowerSelect>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-04-12 15:29:10 +03:00
|
|
|
</section>
|