mirror of
https://github.com/wekan/wekan.git
synced 2026-01-23 17:56:09 +01:00
22 lines
707 B
JavaScript
22 lines
707 B
JavaScript
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
|
|
|
|
Template.settingHeaderBar.helpers({
|
|
isSettingsActive() {
|
|
return FlowRouter.getRouteName() === 'setting' ? 'active' : '';
|
|
},
|
|
isPeopleActive() {
|
|
return FlowRouter.getRouteName() === 'people' ? 'active' : '';
|
|
},
|
|
isAdminReportsActive() {
|
|
return FlowRouter.getRouteName() === 'admin-reports' ? 'active' : '';
|
|
},
|
|
isAttachmentsActive() {
|
|
return FlowRouter.getRouteName() === 'attachments' ? 'active' : '';
|
|
},
|
|
isTranslationActive() {
|
|
return FlowRouter.getRouteName() === 'translation' ? 'active' : '';
|
|
},
|
|
isInformationActive() {
|
|
return FlowRouter.getRouteName() === 'information' ? 'active' : '';
|
|
},
|
|
});
|