-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds content locking to navigation block #44739
Conversation
Size Change: +71 B (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
f4f02ae
to
8ff5567
Compare
This PR now adds locking to the navigation block that I think works like all the other blocks. |
721581b
to
a2541fd
Compare
Adds a new block api method `isNavigationBlock` to complement `isReusableBlock`.
- removes the newly added isNavigationBlock - removes the dependency on isReusable from block locking UI Co-authored-by: George Mamadashvili <240569+Mamaduka@users.noreply.github.com>
30d5d7e
to
61d99b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @draganescu!
I tested edit locking across browsers, and it works as expected.
Ideas for follow-up PRs. These aren't related to changes introduced here.
- Disable "Apply to all blocks inside" when only edit locking is selected.
- Disabled ability to expand blocks in the List View when the parent block has edit locking enabled.
Removed the label |
What?
The navigation block, when locked, cannot restrict editing of contents (links and
submenus). This PR fixes this.
Why?
Because it should work at least on the same feature level as a reusable block, which
has this ability to restrict editing of contents.
How?
Copies the same way in which the reusable blocks have the feature, thus also adding
a new block api method
isNavigationBlock
.Testing Instructions
contents.
Screenshots or screencast
navigation-lock-all.mp4
To do