customfeatures.js 503 B

1234567891011
  1. const form = require('express-form');
  2. const field = form.field;
  3. module.exports = form(
  4. field('settingForm[customize:isEnabledTimeline]').trim().toBooleanStrict(),
  5. field('settingForm[customize:isEnabledDeleteCompletely]').trim().toBooleanStrict(),
  6. field('settingForm[customize:isSavedStatesOfTabChanges]').trim().toBooleanStrict(),
  7. field('settingForm[customize:isEnabledAttachTitleHeader]').trim().toBooleanStrict(),
  8. field('settingForm[customize:showRecentCreatedNumber]').trim().toInt(),
  9. );