not showing useless client infos for query clients
parent
fea3819024
commit
35dff37a40
|
@ -2065,18 +2065,22 @@
|
|||
<td>{{>property_client_description}}</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{if !client_is_query}}
|
||||
<tr>
|
||||
<td>{{tr "Version:"/}}</td>
|
||||
<td><a title="{{>property_client_version}}">{{*: data.property_client_version.split(" ")[0]; }}</a> on {{>property_client_platform}}</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
<tr>
|
||||
<td>{{tr "Online since:"/}}</td>
|
||||
<td class="update_onlinetime">{{:client_onlinetime}}</td>
|
||||
</tr>
|
||||
{{if !client_is_query}}
|
||||
<tr>
|
||||
<td>{{tr "Volume:"/}}</td>
|
||||
<td>{{:sound_volume}}%</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
|
||||
{{if client_teaforum_id > 0}}
|
||||
<tr>
|
||||
|
|
|
@ -216,6 +216,7 @@ class ClientInfoManager extends InfoManager<ClientEntry> {
|
|||
properties["client_name"] = client.createChatTag()[0];
|
||||
properties["client_onlinetime"] = formatDate(client.calculateOnlineTime());
|
||||
properties["sound_volume"] = client.audioController.volume * 100;
|
||||
properties["client_is_query"] = client.properties.client_type == ClientType.CLIENT_QUERY;
|
||||
|
||||
properties["group_server"] = [];
|
||||
for(let groupId of client.assignedServerGroupIds()) {
|
||||
|
|
Loading…
Reference in New Issue