mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that the Server List on the Welcome page is refreshed only when there are changes in the Object Explorer.
This commit is contained in:
parent
5ee0328063
commit
684818def1
@ -148,7 +148,8 @@ class AdHocConnectionSchema extends BaseUISchema {
|
|||||||
optionsLoaded: (res) => self.flatServers = flattenSelectOptions(res),
|
optionsLoaded: (res) => self.flatServers = flattenSelectOptions(res),
|
||||||
optionsReloadBasis: `${self.flatServers.map((s) => s.connected).join('')}${state.connection_refresh}`,
|
optionsReloadBasis: `${self.flatServers.map((s) => s.connected).join('')}${state.connection_refresh}`,
|
||||||
}),
|
}),
|
||||||
depChange: (state)=>{
|
depChange: (state, source)=>{
|
||||||
|
if(source == 'connection_refresh') return;
|
||||||
/* Once the option is selected get the name */
|
/* Once the option is selected get the name */
|
||||||
/* Force sid to null, and set only if connected */
|
/* Force sid to null, and set only if connected */
|
||||||
let selectedServer = _.find(
|
let selectedServer = _.find(
|
||||||
|
Loading…
Reference in New Issue
Block a user