mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(core-root): CB-1062 server uri change detection
This commit is contained in:
@@ -84,15 +84,16 @@ export class ServerConfigResource extends CachedDataResource<ServerConfig | null
|
||||
|
||||
return (
|
||||
this.update.serverName !== this.data.name
|
||||
|| this.update.sessionExpireTime !== this.data.sessionExpireTime
|
||||
|| this.update.serverURL !== this.data.serverURL
|
||||
|| this.update.sessionExpireTime !== this.data.sessionExpireTime
|
||||
|
||||
|| this.update.anonymousAccessEnabled !== this.data.anonymousAccessEnabled
|
||||
|| this.update.anonymousAccessEnabled !== this.data.anonymousAccessEnabled
|
||||
|
||||
|| this.update.adminCredentialsSaveEnabled !== this.data.adminCredentialsSaveEnabled
|
||||
|| this.update.publicCredentialsSaveEnabled !== this.data.publicCredentialsSaveEnabled
|
||||
|| this.update.adminCredentialsSaveEnabled !== this.data.adminCredentialsSaveEnabled
|
||||
|| this.update.publicCredentialsSaveEnabled !== this.data.publicCredentialsSaveEnabled
|
||||
|
||||
|| this.update.customConnectionsEnabled !== this.data.supportsCustomConnections
|
||||
|| !isArraysEqual(this.update.enabledAuthProviders || [], this.data.enabledAuthProviders)
|
||||
|| this.update.customConnectionsEnabled !== this.data.supportsCustomConnections
|
||||
|| !isArraysEqual(this.update.enabledAuthProviders || [], this.data.enabledAuthProviders)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -172,6 +173,7 @@ export class ServerConfigResource extends CachedDataResource<ServerConfig | null
|
||||
Object.assign(this.navigatorSettingsUpdate, serverConfig.defaultNavigatorSettings);
|
||||
|
||||
this.update.serverName = serverConfig.name;
|
||||
this.update.serverURL = serverConfig.serverURL;
|
||||
this.update.sessionExpireTime = serverConfig.sessionExpireTime;
|
||||
|
||||
this.update.adminName = undefined;
|
||||
|
||||
Reference in New Issue
Block a user