fix: P2P address indication
Moves the P2P indication next to the remote IP address and rewords it to "(p2p)".
This commit is contained in:
parent
88a7ff891c
commit
7299b76faf
|
@ -196,7 +196,7 @@
|
||||||
"transport_plural": "Transports:",
|
"transport_plural": "Transports:",
|
||||||
"bandwidth": "Estimated bandwidth:",
|
"bandwidth": "Estimated bandwidth:",
|
||||||
"na": "Come back here for connection information once the conference starts",
|
"na": "Come back here for connection information once the conference starts",
|
||||||
"direct": " (direct)"
|
"peer_to_peer": " (p2p)"
|
||||||
},
|
},
|
||||||
"notify": {
|
"notify": {
|
||||||
"disconnected": "disconnected",
|
"disconnected": "disconnected",
|
||||||
|
|
|
@ -215,8 +215,14 @@ ConnectionIndicator.prototype.generateText = function () {
|
||||||
remote_address_key + "' data-i18n-options='" +
|
remote_address_key + "' data-i18n-options='" +
|
||||||
JSON.stringify({count: data.remoteIP.length})
|
JSON.stringify({count: data.remoteIP.length})
|
||||||
+ "'></span></td><td> " +
|
+ "'></span></td><td> " +
|
||||||
ConnectionIndicator.getStringFromArray(data.remoteIP) +
|
ConnectionIndicator.getStringFromArray(data.remoteIP);
|
||||||
"</td></tr>";
|
|
||||||
|
// 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",
|
var key_remote = "connectionindicator.remoteport",
|
||||||
key_local = "connectionindicator.localport";
|
key_local = "connectionindicator.localport";
|
||||||
|
@ -247,12 +253,7 @@ ConnectionIndicator.prototype.generateText = function () {
|
||||||
+ "'></span></td>" +
|
+ "'></span></td>" +
|
||||||
"<td>"
|
"<td>"
|
||||||
+ ConnectionIndicator.getStringFromArray(data.transportType);
|
+ ConnectionIndicator.getStringFromArray(data.transportType);
|
||||||
// Append (direct) to indicate the P2P type of transport
|
+ "</td></tr>";
|
||||||
if (isP2P) {
|
|
||||||
transport += "<span data-i18n='connectionindicator.direct'>";
|
|
||||||
}
|
|
||||||
// Close "type" column and end table row
|
|
||||||
transport += "</td></tr>";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue