Skip to content

Commit cd3d1c3

Browse files
authored
UX: allow moderators to see admin sidebar AI sentiment links (#36635)
Moderators can view the AI sentiment reports, but we don't show the links in the admin sidebar for them. This makes them visible.
1 parent e83e0f7 commit cd3d1c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/discourse-ai/assets/javascripts/discourse/initializers/ai-sentiment-admin-nav.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ export default apiInitializer((api) => {
1616
route: "admin.dashboardSentiment",
1717
label: "discourse_ai.sentiments.sidebar.overview",
1818
icon: "chart-column",
19+
moderator: true,
1920
});
2021
api.addAdminSidebarSectionLink("reports", {
2122
name: "sentiment_analysis",
2223
route: "adminReports.show",
2324
routeModels: ["sentiment_analysis"],
2425
label: "discourse_ai.sentiments.sidebar.analysis",
2526
icon: "chart-pie",
27+
moderator: true,
2628
});
2729
});

0 commit comments

Comments
 (0)