mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 00:41:31 +00:00
Disable phoenix for vnet and firewall
This commit is contained in:
@@ -1284,6 +1284,10 @@ export default class Explorer {
|
|||||||
: this.refreshAllDatabases();
|
: this.refreshAllDatabases();
|
||||||
await useNotebook.getState().refreshNotebooksEnabledStateForAccount();
|
await useNotebook.getState().refreshNotebooksEnabledStateForAccount();
|
||||||
|
|
||||||
|
//Disable phoenix in case of Vnet or Firewall was enabled.
|
||||||
|
if (useNotebook.getState().isPhoenix && !isPublicInternetAccessAllowed()) {
|
||||||
|
useNotebook.getState().setIsPhoenix(false);
|
||||||
|
}
|
||||||
// TODO: remove reference to isNotebookEnabled and isNotebooksEnabledForAccount
|
// TODO: remove reference to isNotebookEnabled and isNotebooksEnabledForAccount
|
||||||
const isNotebookEnabled = userContext.features.notebooksDownBanner || useNotebook.getState().isPhoenix;
|
const isNotebookEnabled = userContext.features.notebooksDownBanner || useNotebook.getState().isPhoenix;
|
||||||
useNotebook.getState().setIsNotebookEnabled(isNotebookEnabled);
|
useNotebook.getState().setIsNotebookEnabled(isNotebookEnabled);
|
||||||
|
|||||||
Reference in New Issue
Block a user