mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +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"
|
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 = "";
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user