Hide connect button incase Phoenix Notebooks flight is false (#1314)

* Hide connect button id flight notebooks is false and show only if features are used
This commit is contained in:
Karthik chakravarthy
2022-08-10 09:29:23 -04:00
committed by GitHub
parent d0c2f72ed3
commit 89c7ebdd20
3 changed files with 15 additions and 4 deletions

View File

@@ -104,6 +104,10 @@ export function createStaticCommandBarButtons(
if (!useNotebook.getState().isPhoenixFeatures) {
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.mongoShellTemporarilyDownMsg);
}
} else if (btn.commandButtonLabel.indexOf("Open Terminal") !== -1) {
if (!useNotebook.getState().isPhoenixFeatures) {
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.temporarilyDownMsg);
}
} else if (!useNotebook.getState().isPhoenixNotebooks) {
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.temporarilyDownMsg);
}