mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Remove useless server configuration loads
This commit is contained in:
		@@ -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");
 | 
			
		||||
        }
 | 
			
		||||
        this._refreshArea();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user