Skip to content

Allow to hide menu items from their respective menus - #154801

Merged
Johannes Rieken (jrieken) merged 5 commits into
mainfrom
joh/compact-ostrich
Jul 11, 2022
Merged

Johannes Rieken (jrieken) merged 5 commits into
mainfrom
joh/compact-ostrich

Conversation

@jrieken

Copy link
Copy Markdown
Contributor

This PR fixes #

have persisted menu item hide states in menu service, create `MenuItemAction` with an util that can hide itself and its siblings (from the same menu), some adoptions
* Remove the element at `index` by replacing it with the last element. This is faster than `splice`
* but changes the order of the array
*/
export function removeFastWithoutKeepingOrder<T>(array: T[], index: number) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to learn about this new utility!

@jrieken
Johannes Rieken (jrieken) deleted the joh/compact-ostrich branch July 11, 2022 14:09
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

menus Menu items and widget issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants