|
@ -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; |
|
|
} |
|
|
} |
|
|