mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 17:01:13 +00:00
Removal of feature flag notebooksTemporarilyDown (#1178)
* Removal of feature flag notebooksTemporarilyDown * Update flag * Add Vnet/Firewall check for enabling phoenix
This commit is contained in:
committed by
GitHub
parent
529202ba7e
commit
be28eb387b
@@ -1,3 +1,4 @@
|
||||
import { isPublicInternetAccessAllowed } from "Common/DatabaseAccountUtility";
|
||||
import { cloneDeep } from "lodash";
|
||||
import { PhoenixClient } from "Phoenix/PhoenixClient";
|
||||
import create, { UseStore } from "zustand";
|
||||
@@ -302,7 +303,7 @@ export const useNotebook: UseStore<NotebookState> = create((set, get) => ({
|
||||
let isPhoenix = false;
|
||||
if (userContext.features.phoenix) {
|
||||
const phoenixClient = new PhoenixClient();
|
||||
isPhoenix = await phoenixClient.isDbAcountWhitelisted();
|
||||
isPhoenix = isPublicInternetAccessAllowed() && (await phoenixClient.isDbAcountWhitelisted());
|
||||
}
|
||||
set({ isPhoenix });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user