FEATURE: Create logs for Group Moderator changes (#10271)
This commit is contained in:
@@ -23,5 +23,17 @@ export default Component.extend({
|
||||
return false;
|
||||
}
|
||||
);
|
||||
|
||||
$(this.element).on(
|
||||
"click.discourse-staff-logs",
|
||||
"[data-link-topic-id]",
|
||||
e => {
|
||||
let topicId = $(e.target).attr("data-link-topic-id");
|
||||
|
||||
DiscourseURL.routeTo(`/t/${topicId}`);
|
||||
|
||||
return false;
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -47,10 +47,14 @@ const StaffActionLog = RestModel.extend({
|
||||
? `<a href data-link-post-id="${postId}">${postId}</a>`
|
||||
: null;
|
||||
|
||||
const topicLink = topicId
|
||||
? `<a href data-link-topic-id="${topicId}">${topicId}</a>`
|
||||
: null;
|
||||
|
||||
let lines = [
|
||||
format("email", email),
|
||||
format("admin.logs.ip_address", ipAddress),
|
||||
format("admin.logs.topic_id", topicId),
|
||||
format("admin.logs.topic_id", topicLink, false),
|
||||
format("admin.logs.post_id", postLink, false),
|
||||
format("admin.logs.category_id", categoryId)
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user