Browse Source

Fix error on attempting to delete an account moderation note (#18196)

Fixes #18193
closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
5c691430e5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      app/views/admin/report_notes/_report_note.html.haml

+ 4
- 1
app/views/admin/report_notes/_report_note.html.haml View File

@ -15,4 +15,7 @@
- if can?(:destroy, report_note)
.report-notes__item__actions
= table_link_to 'trash', t('admin.reports.notes.delete'), admin_report_note_path(report_note), method: :delete
- if report_note.is_a?(AccountModerationNote)
= table_link_to 'trash', t('admin.reports.notes.delete'), admin_account_moderation_note_path(report_note), method: :delete
- else
= table_link_to 'trash', t('admin.reports.notes.delete'), admin_report_note_path(report_note), method: :delete

Loading…
Cancel
Save