Changes for Disabling notebook related features (#979)

* notebook removal changes

* fixed failing tests
This commit is contained in:
Srinath Narayanan
2021-08-13 23:39:22 -07:00
committed by GitHub
parent 24d0a16123
commit 6e55e397b3
7 changed files with 64 additions and 25 deletions

View File

@@ -67,9 +67,8 @@ export function createStaticCommandBarButtons(
newCollectionBtn.children.push(newDatabaseBtn);
}
buttons.push(createDivider());
if (useNotebook.getState().isNotebookEnabled) {
buttons.push(createDivider());
const notebookButtons: CommandButtonComponentProps[] = [];
const newNotebookButton = createNewNotebookButton(container);
@@ -110,7 +109,8 @@ export function createStaticCommandBarButtons(
buttons.push(btn);
});
} else {
if (!isRunningOnNationalCloud()) {
if (!isRunningOnNationalCloud() && !userContext.features.notebooksTemporarilyDown) {
buttons.push(createDivider());
buttons.push(createEnableNotebooksButton(container));
}
}