Changeset 68b27a4 in Klonkt for src/routes/admin-shows.js
- Timestamp:
- 06/20/2026 07:28:43 AM (3 months ago)
- Branches:
- main
- Children:
- 0fcc09c
- Parents:
- d7b5a6c
- File:
-
- 1 edited
-
src/routes/admin-shows.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/admin-shows.js
rd7b5a6c r68b27a4 18 18 import { mailerConfigured, sendMail } from '../config/mailer.js'; 19 19 import { confirmedFor, counts } from '../services/SubscriberService.js'; 20 import { getSetting, setSetting } from '../services/SettingsService.js'; 20 21 21 22 const router = express.Router(); … … 36 37 pageTitle: 'Agenda', bodyClass: 'on-admin', 37 38 shows, smtp: mailerConfigured(), notifyCount: confirmedFor(site.id, 'notify').length, 39 agendaEnabled: getSetting('agenda_enabled') === '1', 38 40 ...extra, 39 41 }); … … 83 85 }); 84 86 87 router.post('/toggle', requireSiteManager, premiumGate, (req, res) => { 88 // Agenda tonen op de site (Agenda-knop in de pill + /shows-pagina). 89 setSetting('agenda_enabled', req.body.enabled ? '1' : '0'); 90 res.redirect((res.locals.siteUrlBase || '') + '/admin/shows'); 91 }); 92 85 93 router.post('/:id/delete', requireSiteManager, premiumGate, (req, res) => { 86 94 const site = res.locals.site;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)