UX: Add label for delete own post button in review queue (#28991)

This commit is contained in:
Kris 2024-09-30 10:35:16 -04:00 committed by GitHub
parent 4cc2cd4de4
commit cd220299cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,9 @@ class ReviewableQueuedPost < Reviewable
end
end
actions.add(:delete) if guardian.can_delete?(self)
actions.add(:delete) do |a|
a.label = "reviewables.actions.delete_single.title"
end if guardian.can_delete?(self)
end
def build_editable_fields(fields, guardian, args)