Browse Source

web socket servers v2.1

master
gsd 1 year ago
parent
commit
a24d0bad62
  1. 4
      src/api/GlobalApi.js

4
src/api/GlobalApi.js

@ -72,7 +72,7 @@ export default class GlobalApi {
getHumanServerName(server) { getHumanServerName(server) {
for (const srv in this.stats.servers_map) { for (const srv in this.stats.servers_map) {
if (srv['key'] === server) return srv['name']; if (this.stats.servers_map[srv]['key'] === server) return this.stats.servers_map[srv]['name'];
} }
return "неизвестный"; return "неизвестный";
} }
@ -80,7 +80,7 @@ export default class GlobalApi {
getServers4Selector() { getServers4Selector() {
let r = []; let r = [];
for (const srv in this.stats.servers_map) { for (const srv in this.stats.servers_map) {
r.push({"srv": srv['key'], "name": srv['name']}) r.push({"srv": this.stats.servers_map[srv]['key'], "name": this.stats.servers_map[srv]['name']})
} }
return r; return r;
} }

Loading…
Cancel
Save