Commit e56f318f authored by Mark Harding's avatar Mark Harding

(feat): adds engagement tab to analytics

parent f03e30f6
No related merge requests found
Pipeline #93513319 waiting for manual action with stages
in 50 minutes and 39 seconds
......@@ -22,11 +22,11 @@ const sidebarMenuCategories = [
label: 'Earnings',
permissions: ['admin', 'user'],
},
// {
// id: 'engagement',
// label: 'Engagement',
// permissions: ['admin', 'user'],
// },
{
id: 'engagement',
label: 'Engagement',
permissions: ['admin', 'user'],
},
{
id: 'trending',
label: 'Trending',
......
......@@ -27,7 +27,7 @@ export class AnalyticsFiltersComponent implements OnInit, OnDestroy {
ngOnInit() {
// TODO: remove all of this once channel search is ready
// Temporarily remove channel search from channel filter options
this.analyticsService.filters$.subscribe(filters => {
this.subscription = this.analyticsService.filters$.subscribe(filters => {
this.filters = filters;
const channelFilter = filters.find(filter => filter.id === 'channel');
......@@ -49,5 +49,7 @@ export class AnalyticsFiltersComponent implements OnInit, OnDestroy {
this.cd.detectChanges();
}
ngOnDestroy() {}
ngOnDestroy() {
this.subscription.unsubscribe();
}
}
Please register or to comment