mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-23 03:34:16 +00:00
when opening hosted explorer from portal, jump to selected sub/account
This commit is contained in:
@@ -6,13 +6,15 @@ import * as React from "react";
|
||||
|
||||
export const OpenFullScreen: React.FunctionComponent = () => {
|
||||
const searchParams = new URLSearchParams();
|
||||
searchParams.append("openFrom", "portal");
|
||||
|
||||
let hasAccountContext = false;
|
||||
let requiresConnectionString = false;
|
||||
|
||||
if (userContext.authType === AuthType.AAD) {
|
||||
if (userContext.subscriptionId && userContext.databaseAccount) {
|
||||
searchParams.append("subscription", userContext.subscriptionId);
|
||||
searchParams.append("account", userContext.databaseAccount.id);
|
||||
searchParams.append("account", userContext.databaseAccount.name);
|
||||
searchParams.append("authType", "entra");
|
||||
hasAccountContext = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user