-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
side-menu-outer.js
31 lines (27 loc) · 1.02 KB
/
side-menu-outer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import classic from 'ember-classic-decorator';
import { computed } from '@ember/object';
import Component from '@ember/component';
@classic
export default class SideMenuOuter extends Component {
activeSection = null;
activeMenuSection = this.activeSection;
@computed('session.currentRouteName')
get activeMenu() {
const { currentRouteName } = this.session;
if (currentRouteName === 'public.index' || currentRouteName === 'index') {
return this.l10n.t('Info');
} else if (currentRouteName === 'public.sessions') {
return this.l10n.t('Schedule');
} else if (currentRouteName === 'public.schedule') {
return this.l10n.t('Calendar');
} else if (currentRouteName === 'public.speakers') {
return this.l10n.t('Speakers');
} else if (currentRouteName === 'public.cfs.index') {
return this.l10n.t('Call for Speakers');
} else if (currentRouteName === 'public.coc') {
return this.l10n.t('Code of Conduct');
} else {
return this.l10n.t('Select section');
}
}
}