mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 00:51:03 +08:00
Replace the "posts" line with message count
This commit is contained in:
parent
6796d72e9d
commit
c381d60471
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user