2022-09-13 11:38:14 +03:00
|
|
|
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() {
|
2022-09-13 17:42:36 +03:00
|
|
|
return this.dashboardStats?.memberSourceAttributionCounts;
|
2022-09-13 11:38:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
get areMembersEnabled() {
|
|
|
|
return this.dashboardStats.siteStatus?.membersEnabled;
|
|
|
|
}
|
|
|
|
|
|
|
|
get areNewslettersEnabled() {
|
|
|
|
return this.dashboardStats.siteStatus?.newslettersEnabled;
|
|
|
|
}
|
|
|
|
}
|