codepod
codepod copied to clipboard
Freeze a notebook
Can we allow a notebook to be frozen to prevent accidental changes to it?
Hi @forrestbao ,is the "lock button" in the bottom left corner of the canvas what you're looking for?
Wow, I never realized the meaning of the lock icon. Then it's better to add a tool tip over it.
Wow, I never realized the meaning of the lock icon. Then it's better to add a tool tip over it.
The "lock" button in the bottom left corner of the canvas is a native implementation of React control, and the permission control may be achieved at the same time.
Removing the "lock" button in the canvas's bottom left corner, and replacing it with "read-only" toggle switch in the sidebar.
- Pros
- For general user, all "public" repo are always "read-only" unless the author of repo adds the viewing user as a collaborator.
- The author and collaborator can turn the "read-only" toggle switch on/off.
- Cons
- React App users may look for the "lock" button, and we may need to explain how the "read-only" toggle switch works properly.
Any thoughts, @forrestbao, @lihebi ?
I prefer the native lock icon. Is it possible to add a tooltip over it?
I prefer the native lock icon. Is it possible to add a tooltip over it?
Is the tooltip referring to the hover text over the button? I didn't discover the API to modify the default text though. One workaround is to replace the "icon" lock with a customized one that has the desired effect, as shown here.
Yes, text that only appears when the widget is hovered over. If we cannot add a tooltip, then let's leave it as is but we need to mention this lock feature in Codepod's menu.