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",
|
||||
icon: "gift",
|
||||
keywords: "admin.account.sidebar_link.whats_new.keywords",
|
||||
moderator: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -29,6 +30,7 @@ export const ADMIN_NAV_MAP = [
|
|||
route: "adminReports.index",
|
||||
label: "admin.reports.sidebar_link.all",
|
||||
icon: "chart-bar",
|
||||
moderator: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
@ -201,6 +201,8 @@ describe "Admin Revamp | Sidebar Navigation", type: :system do
|
|||
expect(links.map(&:text)).to eq(
|
||||
[
|
||||
"Dashboard",
|
||||
"What's New",
|
||||
"All",
|
||||
"Users",
|
||||
"Watched Words",
|
||||
"Screened Emails",
|
||||
|
|
Loading…
Reference in New Issue