From e9cd74a9e7875b711164a2c381610280d438cdd6 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Tue, 4 Apr 2023 19:53:04 +0300 Subject: [PATCH] FIX: Show correct status for user reviewables (#20959) The status should use the word "user" instead of "flag", for example "approved user" instead of "approved flag". The problem was caused by a mismatched type. --- .../javascripts/discourse/app/helpers/reviewable-status.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/helpers/reviewable-status.js b/app/assets/javascripts/discourse/app/helpers/reviewable-status.js index 4ce2e62eea3..ca2ad1a6056 100644 --- a/app/assets/javascripts/discourse/app/helpers/reviewable-status.js +++ b/app/assets/javascripts/discourse/app/helpers/reviewable-status.js @@ -21,7 +21,7 @@ function dataFor(status, type) { name: "approved_post", cssClass: "approved", }; - case "User": + case "ReviewableUser": return { icon: "check", name: "approved_user", @@ -42,7 +42,7 @@ function dataFor(status, type) { name: "rejected_post", cssClass: "rejected", }; - case "User": + case "ReviewableUser": return { icon: "times", name: "rejected_user",