mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-10-31 12:03:39 +00:00 
			
		
		
		
	xo: Enable import/no-mutable-exports.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
		
				
					committed by
					
						 Anders Kaseorg
						Anders Kaseorg
					
				
			
			
				
	
			
			
			
						parent
						
							9f3b4ff408
						
					
				
				
					commit
					a46f2ed618
				
			| @@ -141,7 +141,7 @@ class ServerManagerView { | ||||
| 		this.initDefaultSettings(); | ||||
| 		this.initSidebar(); | ||||
| 		this.removeUAfromDisk(); | ||||
| 		if (EnterpriseUtil.configFile) { | ||||
| 		if (EnterpriseUtil.hasConfigFile()) { | ||||
| 			await this.initPresetOrgs(); | ||||
| 		} | ||||
|  | ||||
| @@ -946,8 +946,7 @@ class ServerManagerView { | ||||
| 					this.tabs[index].webview.props.name = realmName; | ||||
|  | ||||
| 					domain.alias = escape(realmName); | ||||
| 					DomainUtil.db.push(`/domains[${index}]`, domain, true); | ||||
| 					DomainUtil.reloadDB(); | ||||
| 					DomainUtil.updateDomain(index, domain); | ||||
| 					// Update the realm name also on the Window menu | ||||
| 					ipcRenderer.send('update-menu', { | ||||
| 						tabs: this.tabsForIpc, | ||||
| @@ -968,8 +967,7 @@ class ServerManagerView { | ||||
| 					const serverImgs: NodeListOf<HTMLImageElement> = document.querySelectorAll(serverImgsSelector); | ||||
| 					serverImgs[index].src = localIconUrl; | ||||
| 					domain.icon = localIconUrl; | ||||
| 					DomainUtil.db.push(`/domains[${index}]`, domain, true); | ||||
| 					DomainUtil.reloadDB(); | ||||
| 					DomainUtil.updateDomain(index, domain); | ||||
| 				} | ||||
| 			}); | ||||
| 		}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user