We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b879825 commit 98f40deCopy full SHA for 98f40de
app/renderer/js/main.ts
@@ -253,6 +253,7 @@ class ServerManagerView {
253
el.setAttribute('data-tab-id', index.toString());
254
});
255
this.servers = newServers;
256
+ DomainUtil.batchUpdateDomain(this.servers);
257
this.reloadView(false);
258
}
259
app/renderer/js/utils/domain-util.ts
@@ -64,6 +64,13 @@ class DomainUtil {
64
this.db.push(`/domains[${index}]`, server, true);
65
66
67
+ batchUpdateDomain(servers: Domain[]): void {
68
+ this.db.delete('/domains');
69
+ for (const server of servers) {
70
+ this.db.push('/domains[]', server, true);
71
+ }
72
73
+
74
addDomain(server: any): Promise<void> {
75
const { ignoreCerts } = server;
76
return new Promise(resolve => {
0 commit comments