Disable notebooks temporarily (#978)

* Disable notebooks temporarily

* Updates
This commit is contained in:
Tanuj Mittal
2021-08-13 18:33:58 -07:00
committed by GitHub
parent f8ac36962b
commit 24d0a16123
6 changed files with 80 additions and 23 deletions

View File

@@ -83,6 +83,7 @@ export const createCollectionContextMenuButton = (
items.push({
iconSrc: HostedTerminalIcon,
isDisabled: useNotebook.getState().isShellEnabled && userContext.features.notebooksTemporarilyDown,
onClick: () => {
const selectedCollection: ViewModels.Collection = useSelectedNode.getState().findSelectedCollection();
if (useNotebook.getState().isShellEnabled) {