Dont show replayable option if other files disabled on board

Rebuild board pages on file type for image/other changes, to account for tegaki in postform changes
indiachan-spamvector v0.9.0
Thomas Lynch 2 years ago
parent 0ee959a81a
commit 6b437d7159
  1. 2
      models/forms/changeboardsettings.js
  2. 7
      views/includes/postform.pug

@ -27,6 +27,8 @@ const { Boards, Posts } = require(__dirname+'/../../db/')
'codetheme': ['board', 'threads', 'catalog', 'other'],
'announcement.raw': ['board', 'threads', 'catalog', 'other'],
'customCss': ['board', 'threads', 'catalog', 'other'],
'allowedFileTypes.other': ['board', 'threads', 'catalog'],
'allowedFileTypes.image': ['board', 'threads', 'catalog'],
'enableTegaki': ['board', 'threads', 'catalog'],
'hideBanners': ['board', 'threads', 'catalog'],
});

@ -65,9 +65,10 @@ section.form-wrapper.flex-center
section.row.jsonly
.label Tegaki
input.dummy-link.tegaki-button(type='button', value='Draw')
label.noselect.postform-style.ph-5.ml-1.fh
input(type='checkbox' name='tegakireplay')
| Replayable?
if board.settings.allowedFileTypes.other === true
label.noselect.postform-style.ph-5.ml-1.fh
input(type='checkbox' name='tegakireplay')
| Replayable?
if board.settings.userPostSpoiler || board.settings.userPostDelete || board.settings.userPostUnlink || modview
section.row
.label Password

Loading…
Cancel
Save