mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 07:36:00 +00:00
azure auth works
This commit is contained in:
@@ -11,10 +11,6 @@
|
||||
export let passProps;
|
||||
|
||||
$: databases = useDatabaseList({ conid: data._id });
|
||||
$: console.log('USED DATABASE LIST', data._id);
|
||||
|
||||
// $: databases = useDatabaseList({ conid: $volatileConnectionMapStore[data._id] || data._id });
|
||||
// $: console.log('USED DATABASE LIST', $volatileConnectionMapStore[data._id] || data._id);
|
||||
</script>
|
||||
|
||||
<AppObjectList
|
||||
|
||||
@@ -244,7 +244,6 @@ export function getVolatileConnections() {
|
||||
|
||||
export function installNewVolatileConnectionListener() {
|
||||
apiOn('got-volatile-token', async ({ savedConId, volatileConId }) => {
|
||||
console.log('************************** GOT VOLASTILE TOKEN', savedConId, volatileConId);
|
||||
setVolatileConnectionRemapping(savedConId, volatileConId);
|
||||
await callServerPing();
|
||||
dispatchCacheChange({ key: `server-status-changed` });
|
||||
|
||||
@@ -95,9 +95,7 @@ export async function subscribeCacheChange(reloadTrigger, cacheKey, reloadHandle
|
||||
if (!subscriptionsByReloadTrigger[itemString]) {
|
||||
subscriptionsByReloadTrigger[itemString] = [];
|
||||
}
|
||||
console.log('+++++++++++++ SUBSCRIBE', itemString);
|
||||
subscriptionsByReloadTrigger[itemString].push(reloadHandler);
|
||||
console.log('SUBSCRIBED', subscriptionsByReloadTrigger[itemString]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +108,6 @@ export async function unsubscribeCacheChange(reloadTrigger, cacheKey, reloadHand
|
||||
);
|
||||
}
|
||||
if (subscriptionsByReloadTrigger[itemString].length == 0) {
|
||||
console.log('------------- UNSUBSCRIBE', itemString);
|
||||
delete subscriptionsByReloadTrigger[itemString];
|
||||
}
|
||||
}
|
||||
@@ -121,7 +118,6 @@ export function dispatchCacheChange(reloadTrigger) {
|
||||
|
||||
for (const item of getAsArray(reloadTrigger)) {
|
||||
const itemString = stableStringify(transformApiArgsInv(item));
|
||||
console.log('@@@@@@@@@@@@@@@@@@@@@@@@@ NOTIFYING ', itemString, subscriptionsByReloadTrigger[itemString]);
|
||||
if (subscriptionsByReloadTrigger[itemString]) {
|
||||
for (const handler of subscriptionsByReloadTrigger[itemString]) {
|
||||
handler();
|
||||
|
||||
Reference in New Issue
Block a user