mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 02:44:33 +03:00
26 lines
660 B
JavaScript
26 lines
660 B
JavaScript
|
import Component from '@glimmer/component';
|
||
|
import {action} from '@ember/object';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
// import {tracked} from '@glimmer/tracking';
|
||
|
|
||
|
export default class Recents extends Component {
|
||
|
@service dashboardStats;
|
||
|
|
||
|
@action
|
||
|
loadData() {
|
||
|
this.dashboardStats.loadMemberAttributionStats();
|
||
|
}
|
||
|
|
||
|
get sources() {
|
||
|
return this.dashboardStats?.membersAttributionSources90d || [];
|
||
|
}
|
||
|
|
||
|
get areMembersEnabled() {
|
||
|
return this.dashboardStats.siteStatus?.membersEnabled;
|
||
|
}
|
||
|
|
||
|
get areNewslettersEnabled() {
|
||
|
return this.dashboardStats.siteStatus?.newslettersEnabled;
|
||
|
}
|
||
|
}
|