Replace the "posts" line with message count

This commit is contained in:
Sam 2018-05-17 10:25:50 +10:00
parent 6796d72e9d
commit c381d60471
2 changed files with 11 additions and 1 deletions

View File

@ -159,6 +159,9 @@ const Report = Discourse.Model.extend({
@computed('type')
icon(type) {
if (type.indexOf("message") > -1) {
return "envelope";
}
switch (type) {
case "flags": return "flag";
case "likes": return "heart";

View File

@ -1,7 +1,14 @@
class AdminDashboardNextData
include StatsCacheable
REPORTS = ["page_view_total_reqs", "visits", "posts", "time_to_first_response", "likes", "flags" ]
REPORTS = %w{
page_view_total_reqs
visits
time_to_first_response
likes
flags
user_to_user_private_messages_with_replies
}
def initialize(opts = {})
@opts = opts