mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 10:11:03 +01:00 
			
		
		
		
	Open local addresses section by default when there are no existing local addresses
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
		
							parent
							
								
									91a88f25a8
								
							
						
					
					
						commit
						5ae1b1444f
					
				@ -134,6 +134,10 @@ export default class AliasSettings extends React.Component {
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            this.setState({ localAliases });
 | 
			
		||||
 | 
			
		||||
            if (localAliases.length === 0) {
 | 
			
		||||
                this.setState({ detailsOpen: true });
 | 
			
		||||
            }
 | 
			
		||||
        } finally {
 | 
			
		||||
            this.setState({ localAliasesLoading: false });
 | 
			
		||||
        }
 | 
			
		||||
@ -388,7 +392,7 @@ export default class AliasSettings extends React.Component {
 | 
			
		||||
                />
 | 
			
		||||
                <span className='mx_SettingsTab_subheading mx_AliasSettings_localAliasHeader'>{_t("Local Addresses")}</span>
 | 
			
		||||
                <p>{_t("Set addresses for this room so users can find this room through your homeserver (%(localDomain)s)", {localDomain})}</p>
 | 
			
		||||
                <details onToggle={this.onLocalAliasesToggled}>
 | 
			
		||||
                <details onToggle={this.onLocalAliasesToggled} open={this.state.detailsOpen}>
 | 
			
		||||
                    <summary>{ this.state.detailsOpen ? _t('Show less') : _t("Show more")}</summary>
 | 
			
		||||
                    {localAliasesList}
 | 
			
		||||
                </details>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user