mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 23:15:53 +08:00
FEATURE: additional links for moderator's sidebar (#26815)
In this PR we introduced an admin sidebar for moderators - https://github.com/discourse/discourse/pull/26795 `What's new` and `all reports` links were missing as moderators have access to those pages.
This commit is contained in:
parent
267b26c8d6
commit
8704499b5a
@ -17,6 +17,7 @@ export const ADMIN_NAV_MAP = [
|
|||||||
label: "admin.account.sidebar_link.whats_new.title",
|
label: "admin.account.sidebar_link.whats_new.title",
|
||||||
icon: "gift",
|
icon: "gift",
|
||||||
keywords: "admin.account.sidebar_link.whats_new.keywords",
|
keywords: "admin.account.sidebar_link.whats_new.keywords",
|
||||||
|
moderator: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@ -29,6 +30,7 @@ export const ADMIN_NAV_MAP = [
|
|||||||
route: "adminReports.index",
|
route: "adminReports.index",
|
||||||
label: "admin.reports.sidebar_link.all",
|
label: "admin.reports.sidebar_link.all",
|
||||||
icon: "chart-bar",
|
icon: "chart-bar",
|
||||||
|
moderator: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -201,6 +201,8 @@ describe "Admin Revamp | Sidebar Navigation", type: :system do
|
|||||||
expect(links.map(&:text)).to eq(
|
expect(links.map(&:text)).to eq(
|
||||||
[
|
[
|
||||||
"Dashboard",
|
"Dashboard",
|
||||||
|
"What's New",
|
||||||
|
"All",
|
||||||
"Users",
|
"Users",
|
||||||
"Watched Words",
|
"Watched Words",
|
||||||
"Screened Emails",
|
"Screened Emails",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user