Compacted dashboard controller tracked property code style

This commit is contained in:
Kevin Ansfield 2021-04-20 09:01:04 +01:00
parent 889f90f494
commit a271aa53fd

View File

@ -12,47 +12,29 @@ export default class DashboardController extends Controller {
@service settings;
@service whatsNew;
@tracked
eventsData = null;
@tracked
eventsError = null;
@tracked
eventsLoading = false;
@tracked eventsData = null;
@tracked eventsError = null;
@tracked eventsLoading = false;
@tracked
mrrStatsData = null;
@tracked
mrrStatsError = null;
@tracked
mrrStatsLoading = false;
@tracked mrrStatsData = null;
@tracked mrrStatsError = null;
@tracked mrrStatsLoading = false;
@tracked
memberCountStatsData = null;
@tracked
memberCountStatsError = null;
@tracked
memberCountStatsLoading = false;
@tracked memberCountStatsData = null;
@tracked memberCountStatsError = null;
@tracked memberCountStatsLoading = false;
@tracked
topMembersData = null;
@tracked
topMembersError = null;
@tracked
topMembersLoading = false;
@tracked topMembersData = null;
@tracked topMembersError = null;
@tracked topMembersLoading = false;
@tracked
newsletterOpenRatesData = null;
@tracked
newsletterOpenRatesError = null;
@tracked
newsletterOpenRatesLoading = false;
@tracked newsletterOpenRatesData = null;
@tracked newsletterOpenRatesError = null;
@tracked newsletterOpenRatesLoading = false;
@tracked
whatsNewEntries = null;
@tracked
whatsNewEntriesLoading = null;
@tracked
whatsNewEntriesError = null;
@tracked whatsNewEntries = null;
@tracked whatsNewEntriesLoading = null;
@tracked whatsNewEntriesError = null;
get topMembersDataHasOpenRates() {
return this.topMembersData && this.topMembersData.find((member) => {