Hide commandbar btns when phoenix flag is false (#1174)

* Hide commandbar btns when phoenix flag is false

* Showing notebooks based on phoenix
This commit is contained in:
Karthik chakravarthy
2021-12-14 09:02:49 -05:00
committed by GitHub
parent b327bfd0d6
commit b7daadee20
2 changed files with 2 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ export function createStaticCommandBarButtons(
}
notebookButtons.forEach((btn) => {
if (userContext.features.notebooksTemporarilyDown) {
if (!useNotebook.getState().isPhoenix) {
if (btn.commandButtonLabel.indexOf("Cassandra") !== -1) {
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.cassandraShellTemporarilyDownMsg);
} else if (btn.commandButtonLabel.indexOf("Mongo") !== -1) {