mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Remove useless server configuration loads
This commit is contained in:
parent
2ad220b51f
commit
515e254ad9
@ -32,19 +32,7 @@ class PasswordInput {
|
||||
class: "help-block"
|
||||
});
|
||||
|
||||
this._init();
|
||||
}
|
||||
|
||||
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) {
|
||||
@ -80,8 +68,6 @@ class PasswordInput {
|
||||
}
|
||||
|
||||
_refreshArea() {
|
||||
if (!this._ready)
|
||||
return;
|
||||
|
||||
this.helpArea.innerHTML = "";
|
||||
|
||||
|
@ -95,7 +95,6 @@ const SettingsPrivacySection = {
|
||||
const settings = await SettingsInterface.getDataConservationPolicy();
|
||||
|
||||
// Load server policy
|
||||
await ServerConfig.ensureLoaded();
|
||||
const serverPolicy = ServerConfig.conf.data_conservation_policy;
|
||||
|
||||
// Use Vue
|
||||
|
Loading…
Reference in New Issue
Block a user