mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-18 16:31:31 +00:00
Disable phoenix for vnet and firewall
This commit is contained in:
@@ -1284,6 +1284,10 @@ export default class Explorer {
|
||||
: this.refreshAllDatabases();
|
||||
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
|
||||
const isNotebookEnabled = userContext.features.notebooksDownBanner || useNotebook.getState().isPhoenix;
|
||||
useNotebook.getState().setIsNotebookEnabled(isNotebookEnabled);
|
||||
|
||||
Reference in New Issue
Block a user