mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-28 12:35:10 +01:00
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:
parent
b327bfd0d6
commit
b7daadee20
src/Explorer
@ -99,7 +99,7 @@ export function createStaticCommandBarButtons(
|
|||||||
}
|
}
|
||||||
|
|
||||||
notebookButtons.forEach((btn) => {
|
notebookButtons.forEach((btn) => {
|
||||||
if (userContext.features.notebooksTemporarilyDown) {
|
if (!useNotebook.getState().isPhoenix) {
|
||||||
if (btn.commandButtonLabel.indexOf("Cassandra") !== -1) {
|
if (btn.commandButtonLabel.indexOf("Cassandra") !== -1) {
|
||||||
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.cassandraShellTemporarilyDownMsg);
|
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.cassandraShellTemporarilyDownMsg);
|
||||||
} else if (btn.commandButtonLabel.indexOf("Mongo") !== -1) {
|
} else if (btn.commandButtonLabel.indexOf("Mongo") !== -1) {
|
||||||
|
@ -121,7 +121,7 @@ export const ResourceTree: React.FC<ResourceTreeProps> = ({ container }: Resourc
|
|||||||
children: [],
|
children: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
if (userContext.features.notebooksTemporarilyDown) {
|
if (!useNotebook.getState().isPhoenix) {
|
||||||
notebooksTree.children.push(buildNotebooksTemporarilyDownTree());
|
notebooksTree.children.push(buildNotebooksTemporarilyDownTree());
|
||||||
} else {
|
} else {
|
||||||
if (galleryContentRoot) {
|
if (galleryContentRoot) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user