mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
Client side of CARDS_LOADING=lazy. In lazy mode each list's cardsWithLimit subscribes to boardCardsWindow for just the cards it renders (growing with the infinite-scroll limit) and to boardListCardCount for the total; showSpinner uses that server count to decide whether more cards remain, since minimongo now holds only the loaded window. Default 'all' mode is unchanged (helpers short-circuit on isLazyCards()). Adds Admin Panel / Features — a new admin section (route /admin-features, nav entry, adminFeatures template) intended as the home for optional / performance / future tier-gated capabilities. First control: "Card loading" (all | lazy), which writes the cardsLoading Setting; it mirrors, and is overridden on startup by, the CARDS_LOADING env var. Includes an experimental-note (counters/WIP limits and the Calendar/Table/Gantt views reflect only loaded cards; reload boards after change) and the i18n keys.
26 lines
810 B
JavaScript
26 lines
810 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' : '';
|
|
},
|
|
isFeaturesActive() {
|
|
return FlowRouter.getRouteName() === 'admin-features' ? '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' : '';
|
|
},
|
|
});
|