mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-06-05 15:12:04 +01:00
Only show networking settings warning for Mongo and Cassandra accounts (#1376)
This commit is contained in:
parent
ab1409efb1
commit
5059917edf
@ -11,6 +11,7 @@ const PortalIPs: { [key: string]: string[] } = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const doNetworkSettingsAllowDataExplorerAccess = (): boolean => {
|
export const doNetworkSettingsAllowDataExplorerAccess = (): boolean => {
|
||||||
|
if (userContext.apiType === "Cassandra" || userContext.apiType === "Mongo") {
|
||||||
const accountProperties = userContext.databaseAccount?.properties;
|
const accountProperties = userContext.databaseAccount?.properties;
|
||||||
|
|
||||||
if (!accountProperties) {
|
if (!accountProperties) {
|
||||||
@ -37,4 +38,7 @@ export const doNetworkSettingsAllowDataExplorerAccess = (): boolean => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return numberOfMatches === portalIPs.length;
|
return numberOfMatches === portalIPs.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user