when opening hosted explorer from portal, jump to selected sub/account

This commit is contained in:
Ashley Stanton-Nurse
2024-06-07 12:05:46 -07:00
parent 4866d3c902
commit 2bd913acbb
7 changed files with 37 additions and 48 deletions

View File

@@ -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;
}