merge-requests/218/head^2
Thomas Lynch 4 years ago
parent e103c71478
commit d4e39ce046
  1. 8
      models/forms/changeboardsettings.js
  2. 4
      views/includes/actionfooter.pug

@ -142,6 +142,14 @@ module.exports = async (req, res, next) => {
, rebuildCatalog = false , rebuildCatalog = false
, rebuildOther = false; , rebuildOther = false;
if (newSettings.userPostDelete !== oldSettings.userPostDelete
|| newSettings.userPostSpoiler !== oldSettings.userPostSpoiler
|| newSettings.userPostUnlink !== oldSettings.userPostUnlink) {
rebuildThreads = true;
rebuildBoard = true;
rebuildCatalog = true;
}
if (newSettings.captchaMode > oldSettings.captchaMode) { if (newSettings.captchaMode > oldSettings.captchaMode) {
if (oldSettings.captchaMode === 0) { if (oldSettings.captchaMode === 0) {
rebuildBoard = true; rebuildBoard = true;

@ -2,15 +2,19 @@ details.toggle-label#actionform
summary.toggle-summary Show Post Actions summary.toggle-summary Show Post Actions
.actions .actions
h4.no-m-p Actions: h4.no-m-p Actions:
if board.settings.userPostDelete
label label
input.post-check(type='checkbox', name='delete' value='1') input.post-check(type='checkbox', name='delete' value='1')
| Delete Posts | Delete Posts
if board.settings.userPostUnlink
label label
input.post-check(type='checkbox', name='unlink_file' value='1') input.post-check(type='checkbox', name='unlink_file' value='1')
| Unlink Files | Unlink Files
if board.settings.userPostSpoiler
label label
input.post-check(type='checkbox', name='spoiler' value='1') input.post-check(type='checkbox', name='spoiler' value='1')
| Spoiler Files | Spoiler Files
if board.settings.userPostSpoiler || board.settings.userPostUnlink || board.settings.userPostDelete
label label
input#password(type='password', name='postpassword', placeholder='Post password' autocomplete='off') input#password(type='password', name='postpassword', placeholder='Post password' autocomplete='off')
label label

Loading…
Cancel
Save