mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-05 18:47:41 +00:00
* initial commit * Add change partition key logic * Update snapshot * Update snapshot * Update snapshot * Update snapshot * Cleanup code * Disable Change on progress job * add the database information in the panel * add the database information in the panel * clear in progress message and remove large partition key row * hide from national cloud * hide from national cloud * Add check for public cloud
10 lines
276 B
TypeScript
10 lines
276 B
TypeScript
import { userContext } from "../UserContext";
|
|
|
|
export function isRunningOnNationalCloud(): boolean {
|
|
return !isRunningOnPublicCloud();
|
|
}
|
|
|
|
export function isRunningOnPublicCloud(): boolean {
|
|
return userContext?.portalEnv === "prod1" || userContext?.portalEnv === "prod";
|
|
}
|