Add domain block setting reject_favourite and reject_reply

This commit is contained in:
KMY 2023-04-27 12:04:10 +09:00
parent 27353bbaee
commit 6537405eab
15 changed files with 85 additions and 22 deletions

View file

@ -108,12 +108,22 @@ delegate(document, '.filter-subset--with-select select', 'change', ({ target })
const onDomainBlockSeverityChange = (target) => {
const rejectMediaDiv = document.querySelector('.input.with_label.domain_block_reject_media');
const rejectFavouriteDiv= document.querySelector('.input.with_label.domain_block_reject_favourite');
const rejectReplyDiv = document.querySelector('.input.with_label.domain_block_reject_reply');
const rejectReportsDiv = document.querySelector('.input.with_label.domain_block_reject_reports');
if (rejectMediaDiv) {
rejectMediaDiv.style.display = (target.value === 'suspend') ? 'none' : 'block';
}
if (rejectFavouriteDiv) {
rejectFavouriteDiv.style.display = (target.value === 'suspend') ? 'none' : 'block';
}
if (rejectReplyDiv) {
rejectReplyDiv.style.display = (target.value === 'suspend') ? 'none' : 'block';
}
if (rejectReportsDiv) {
rejectReportsDiv.style.display = (target.value === 'suspend') ? 'none' : 'block';
}