Remove useless server configuration loads

This commit is contained in:
Pierre HUBERT 2021-02-20 11:03:54 +01:00
parent 2ad220b51f
commit 515e254ad9
2 changed files with 1 additions and 16 deletions

View File

@ -32,19 +32,7 @@ class PasswordInput {
class: "help-block" class: "help-block"
}); });
this._init(); this._refreshArea();
}
async _init() {
try {
await ServerConfig.ensureLoaded()
this._ready = true;
this._valid = false;
this._refreshArea();
} catch(e) {
console.error(e);
notify(tr("Failed to load server configuration! Please reload the page!"), "danger");
}
} }
setFirstName(firstName) { setFirstName(firstName) {
@ -80,8 +68,6 @@ class PasswordInput {
} }
_refreshArea() { _refreshArea() {
if (!this._ready)
return;
this.helpArea.innerHTML = ""; this.helpArea.innerHTML = "";

View File

@ -95,7 +95,6 @@ const SettingsPrivacySection = {
const settings = await SettingsInterface.getDataConservationPolicy(); const settings = await SettingsInterface.getDataConservationPolicy();
// Load server policy // Load server policy
await ServerConfig.ensureLoaded();
const serverPolicy = ServerConfig.conf.data_conservation_policy; const serverPolicy = ServerConfig.conf.data_conservation_policy;
// Use Vue // Use Vue