Allow domain blocks that only reject media without silencing or suspending (#4325)
* Allow domain blocks to reject media without silencing or suspending * Fix typo * Hide 'Reject media' button when superfluous, instead of disabling it * Properly hide 'reject media' checkbox on page load if needed This may happen when resubmitting the domain block form after an error. * Don't ask whether undoing a media-only block should be retroactive * Rename :media_only block to :noop * Display :noop block as None in frontend, allow blocks that do nothing * Remove 'coding' line auto-added by emacs
Showing
- app/models/domain_block.rb 1 addition, 1 deletionapp/models/domain_block.rb
- app/services/block_domain_service.rb 2 additions, 2 deletionsapp/services/block_domain_service.rb
- app/services/unblock_domain_service.rb 1 addition, 1 deletionapp/services/unblock_domain_service.rb
- app/views/admin/domain_blocks/show.html.haml 12 additions, 7 deletionsapp/views/admin/domain_blocks/show.html.haml
- config/locales/en.yml 3 additions, 1 deletionconfig/locales/en.yml
Please register or sign in to comment