Commit e56f318f authored by Mark Harding's avatar Mark Harding
Browse files

(feat): adds engagement tab to analytics

parent f03e30f6
Pipeline #93601092 passed with stages
in 49 minutes and 16 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();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment