mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-07-13 15:34:36 +01:00
Rebase on client refresh bug fix.
This commit is contained in:
parent
c7799dbe8b
commit
23721140c3
@ -195,7 +195,7 @@ let _client: Cosmos.CosmosClient;
|
|||||||
|
|
||||||
export function client(): Cosmos.CosmosClient {
|
export function client(): Cosmos.CosmosClient {
|
||||||
console.log(`Client Call`);
|
console.log(`Client Call`);
|
||||||
console.log(`Client Call: userContext.hasDataPlaneRbacSettingChanged: ${userContext.hasDataPlaneRbacSettingChanged}`);
|
console.log(`Client Call: userContext.refreshCosmosClient: ${userContext.refreshCosmosClient}`);
|
||||||
if (_client) {
|
if (_client) {
|
||||||
if (!userContext.refreshCosmosClient) {
|
if (!userContext.refreshCosmosClient) {
|
||||||
return _client;
|
return _client;
|
||||||
|
@ -310,7 +310,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
|
|||||||
// TODO: Check if region selection has been updated. Update database account in user context accordingly.
|
// TODO: Check if region selection has been updated. Update database account in user context accordingly.
|
||||||
updateUserContext({
|
updateUserContext({
|
||||||
selectedRegionalEndpoint: regionOptions.find((option) => option.key === selectedRegion)?.data?.endpoint,
|
selectedRegionalEndpoint: regionOptions.find((option) => option.key === selectedRegion)?.data?.endpoint,
|
||||||
hasCosmosClientRegionSettingChanged: true,
|
refreshCosmosClient: true,
|
||||||
});
|
});
|
||||||
// TODO: If Global selected, then clear out region selection, but keep change variable enabled.
|
// TODO: If Global selected, then clear out region selection, but keep change variable enabled.
|
||||||
console.log(
|
console.log(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user