2026-01-20 02:28:32 +02:00
|
|
|
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
|
|
|
|
|
|
2026-01-14 00:38:56 +02:00
|
|
|
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' : '';
|
|
|
|
|
},
|
|
|
|
|
});
|