|
|
@@ -100,7 +100,10 @@ module.exports = (crowi) => {
|
|
|
body('isSavedStatesOfTabChanges').isBoolean(),
|
|
|
body('isEnabledAttachTitleHeader').isBoolean(),
|
|
|
// TODO implement for pageListLimitForModal
|
|
|
+ body('pageLimitationS').isInt().isInt({ min: 1, max: 1000 }),
|
|
|
body('pageLimitationM').isInt().isInt({ min: 1, max: 1000 }),
|
|
|
+ body('pageLimitationL').isInt().isInt({ min: 1, max: 1000 }),
|
|
|
+ body('pageLimitationXL').isInt().isInt({ min: 1, max: 1000 }),
|
|
|
body('isEnabledStaleNotification').isBoolean(),
|
|
|
body('isAllReplyShown').isBoolean(),
|
|
|
],
|
|
|
@@ -152,7 +155,10 @@ module.exports = (crowi) => {
|
|
|
isEnabledTimeline: await crowi.configManager.getConfig('crowi', 'customize:isEnabledTimeline'),
|
|
|
isSavedStatesOfTabChanges: await crowi.configManager.getConfig('crowi', 'customize:isSavedStatesOfTabChanges'),
|
|
|
isEnabledAttachTitleHeader: await crowi.configManager.getConfig('crowi', 'customize:isEnabledAttachTitleHeader'),
|
|
|
+ pageLimitationS: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationS'),
|
|
|
pageLimitationM: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationM'),
|
|
|
+ pageLimitationL: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationL'),
|
|
|
+ pageLimitationXL: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationXL'),
|
|
|
// TODO implement for pageListLimitForModal
|
|
|
isEnabledStaleNotification: await crowi.configManager.getConfig('crowi', 'customize:isEnabledStaleNotification'),
|
|
|
isAllReplyShown: await crowi.configManager.getConfig('crowi', 'customize:isAllReplyShown'),
|
|
|
@@ -276,7 +282,10 @@ module.exports = (crowi) => {
|
|
|
'customize:isSavedStatesOfTabChanges': req.body.isSavedStatesOfTabChanges,
|
|
|
'customize:isEnabledAttachTitleHeader': req.body.isEnabledAttachTitleHeader,
|
|
|
// TODO implement for pageListLimitForModal
|
|
|
+ 'customize:showPageLimitationS': req.body.pageLimitationS,
|
|
|
'customize:showPageLimitationM': req.body.pageLimitationM,
|
|
|
+ 'customize:showPageLimitationL': req.body.pageLimitationL,
|
|
|
+ 'customize:showPageLimitationXL': req.body.pageLimitationXL,
|
|
|
'customize:isEnabledStaleNotification': req.body.isEnabledStaleNotification,
|
|
|
'customize:isAllReplyShown': req.body.isAllReplyShown,
|
|
|
};
|
|
|
@@ -288,7 +297,10 @@ module.exports = (crowi) => {
|
|
|
isSavedStatesOfTabChanges: await crowi.configManager.getConfig('crowi', 'customize:isSavedStatesOfTabChanges'),
|
|
|
isEnabledAttachTitleHeader: await crowi.configManager.getConfig('crowi', 'customize:isEnabledAttachTitleHeader'),
|
|
|
// TODO implement for pageListLimitForModal
|
|
|
+ pageLimitationS: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationS'),
|
|
|
pageLimitationM: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationM'),
|
|
|
+ pageLimitationL: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationL'),
|
|
|
+ pageLimitationXL: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationXL'),
|
|
|
isEnabledStaleNotification: await crowi.configManager.getConfig('crowi', 'customize:isEnabledStaleNotification'),
|
|
|
isAllReplyShown: await crowi.configManager.getConfig('crowi', 'customize:isAllReplyShown'),
|
|
|
};
|