not showing useless client infos for query clients

canary
WolverinDEV 2019-02-17 12:54:26 +01:00
parent fea3819024
commit 35dff37a40
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -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()) {