fix: P2P address indication

Moves the P2P indication next to the remote IP address
and rewords it to "(p2p)".
This commit is contained in:
paweldomas 2017-04-03 09:59:22 -05:00
parent 88a7ff891c
commit 7299b76faf
2 changed files with 10 additions and 9 deletions

View File

@ -196,7 +196,7 @@
"transport_plural": "Transports:",
"bandwidth": "Estimated bandwidth:",
"na": "Come back here for connection information once the conference starts",
"direct": " (direct)"
"peer_to_peer": " (p2p)"
},
"notify": {
"disconnected": "disconnected",

View File

@ -215,8 +215,14 @@ ConnectionIndicator.prototype.generateText = function () {
remote_address_key + "' data-i18n-options='" +
JSON.stringify({count: data.remoteIP.length})
+ "'></span></td><td> " +
ConnectionIndicator.getStringFromArray(data.remoteIP) +
"</td></tr>";
ConnectionIndicator.getStringFromArray(data.remoteIP);
// Append (p2p) to indicate the P2P type of transport
if (isP2P) {
transport
+= "<span data-i18n='connectionindicator.peer_to_peer'>";
}
transport += "</td></tr>";
var key_remote = "connectionindicator.remoteport",
key_local = "connectionindicator.localport";
@ -247,12 +253,7 @@ ConnectionIndicator.prototype.generateText = function () {
+ "'></span></td>" +
"<td>"
+ ConnectionIndicator.getStringFromArray(data.transportType);
// Append (direct) to indicate the P2P type of transport
if (isP2P) {
transport += "<span data-i18n='connectionindicator.direct'>";
}
// Close "type" column and end table row
transport += "</td></tr>";
+ "</td></tr>";
}