mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-30 14:22:05 +00:00
initial commit for notbooks pupeteer tests
This commit is contained in:
@@ -1724,6 +1724,8 @@ export default class Explorer {
|
||||
case MessageTypes.SendNotification:
|
||||
case MessageTypes.ClearNotification:
|
||||
case MessageTypes.LoadingStatus:
|
||||
case MessageTypes.InitTestExplorer:
|
||||
case MessageTypes.HideConnectScreen:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1742,6 +1744,10 @@ export default class Explorer {
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.data.data.type === MessageTypes.HideConnectScreen) {
|
||||
this.hideConnectExplorerForm();
|
||||
}
|
||||
|
||||
const message: any = event.data.data;
|
||||
const inputs: ViewModels.DataExplorerInputsFrame = message.inputs;
|
||||
|
||||
@@ -2537,6 +2543,7 @@ export default class Explorer {
|
||||
const databaseAccountLocation = databaseAccount && databaseAccount.location.toLowerCase();
|
||||
const disallowedLocationsUri = `${configContext.BACKEND_ENDPOINT}/api/disallowedLocations`;
|
||||
const authorizationHeader = getAuthorizationHeader();
|
||||
console.log("auth header:" + JSON.stringify(authorizationHeader));
|
||||
try {
|
||||
const response = await fetch(disallowedLocationsUri, {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user