mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Hide reject media checkbox when not relevant. (#8426)
This commit is contained in:
parent
793eea2982
commit
29da56cf75
@ -39,3 +39,10 @@ delegate(document, '.media-spoiler-hide-button', 'click', () => {
|
|||||||
element.click();
|
element.click();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
delegate(document, '#domain_block_severity', 'change', ({ target }) => {
|
||||||
|
const rejectMediaDiv = document.querySelector('.input.with_label.domain_block_reject_media');
|
||||||
|
if (rejectMediaDiv) {
|
||||||
|
rejectMediaDiv.style.display = (target.value === 'suspend') ? 'none' : 'block';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
- content_for :header_tags do
|
||||||
|
= javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('.title')
|
= t('.title')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user