|
73 | 73 | roadmap: "company/roadmap.html", |
74 | 74 | "release-notes": "company/release-notes.html", |
75 | 75 | admin: "admin/platform-settings.html", |
76 | | - owner: "admin/db-viewer.html", |
| 76 | + owner: "owner/memberships.html", |
77 | 77 | "admin-operations": "admin/operations.html", |
78 | | - "admin-site-settings": "admin/site-settings.html", |
79 | | - "admin-branding": "admin/branding.html", |
80 | | - "admin-themes": "admin/themes.html", |
81 | | - "admin-design-system": "admin/design-system.html", |
82 | 78 | "admin-controls": "admin/controls.html", |
83 | 79 | "admin-db-viewer": "admin/db-viewer.html", |
84 | | - "admin-grouping-colors": "admin/grouping-colors.html", |
85 | 80 | "admin-platform-settings": "admin/platform-settings.html", |
86 | 81 | "admin-ratings": "admin/ratings.html", |
87 | 82 | "admin-users": "admin/users.html", |
|
91 | 86 | "admin-moderation": "admin/moderation.html", |
92 | 87 | "admin-analytics": "admin/analytics.html", |
93 | 88 | "owner-ai-credits": "owner/ai-credits.html", |
| 89 | + "owner-branding": "owner/branding.html", |
| 90 | + "owner-design-system": "owner/design-system.html", |
| 91 | + "owner-grouping-colors": "owner/grouping-colors.html", |
94 | 92 | "owner-memberships": "owner/memberships.html", |
| 93 | + "owner-site-settings": "owner/site-settings.html", |
| 94 | + "owner-themes": "owner/themes.html", |
95 | 95 | "community-guidelines": "legal/community-guidelines.html", |
96 | 96 | "cookies-policy": "legal/cookies-policy.html", |
97 | 97 | "copyright-policy": "legal/copyright-policy.html", |
|
106 | 106 | "account-profile": "account/profile.html", |
107 | 107 | "account-security": "account/security.html", |
108 | 108 | "account-user-controls": "account/user-controls.html", |
109 | | - branding: "admin/branding.html", |
| 109 | + branding: "owner/branding.html", |
110 | 110 | controls: "admin/controls.html", |
111 | | - "design-system": "admin/design-system.html", |
112 | | - "grouping-colors": "admin/grouping-colors.html", |
| 111 | + "design-system": "owner/design-system.html", |
| 112 | + "grouping-colors": "owner/grouping-colors.html", |
113 | 113 | rating: "admin/ratings.html" |
114 | 114 | }; |
115 | 115 |
|
|
173 | 173 | return Array.isArray(items) |
174 | 174 | ? items.map(function (item) { |
175 | 175 | return { |
| 176 | + disabled: item.disabled === true, |
176 | 177 | href: typeof item.href === "string" ? item.href : "", |
177 | 178 | label: typeof item.label === "string" ? item.label : "", |
178 | 179 | localNotes: item.localNotes === true, |
179 | 180 | path: typeof item.path === "string" ? item.path : "", |
| 181 | + planned: item.planned === true, |
180 | 182 | route: typeof item.route === "string" ? item.route : "" |
181 | 183 | }; |
182 | 184 | }).filter(function (item) { |
183 | | - return item.label && (item.route || item.path || item.href); |
| 185 | + return item.label && (item.disabled || item.route || item.path || item.href); |
184 | 186 | }) |
185 | 187 | : []; |
186 | 188 | } |
|
230 | 232 | } |
231 | 233 |
|
232 | 234 | function createMenuLink(item) { |
| 235 | + if (item.disabled) { |
| 236 | + const label = document.createElement("span"); |
| 237 | + label.dataset.menuItemDisabled = ""; |
| 238 | + label.setAttribute("aria-disabled", "true"); |
| 239 | + label.textContent = item.planned ? item.label + " (planned)" : item.label; |
| 240 | + return label; |
| 241 | + } |
233 | 242 | const link = document.createElement("a"); |
234 | 243 | link.dataset.navLink = ""; |
235 | 244 | if (item.route) { |
|
0 commit comments