Remove Explorer.isTryCosmos (#556)

This commit is contained in:
Steve Faulkner
2021-03-17 16:02:20 -05:00
committed by GitHub
parent a2e3be9680
commit 9db0975f7f
8 changed files with 11 additions and 20 deletions

View File

@@ -20,15 +20,14 @@ interface UserContext {
// API Type is not yet provided by ARM. You need to manually inspect all the capabilities+kind so we abstract that logic in userContext
// This is coming in a future Cosmos ARM API version as a prperty on databaseAccount
apiType?: ApiType;
isTryCosmosDBSubscription?: boolean;
portalEnv?: PortalEnv;
}
type ApiType = "SQL" | "Mongo" | "Gremlin" | "Tables" | "Cassandra";
export type PortalEnv = "localhost" | "blackforest" | "fairfax" | "mooncake" | "prod" | "dev";
const userContext: UserContext = {
portalEnv: "prod",
};
const userContext: UserContext = { isTryCosmosDBSubscription: false, portalEnv: "prod" };
function updateUserContext(newContext: UserContext): void {
Object.assign(userContext, newContext);