|
@@ -74,21 +74,27 @@ JITSI_TRACK_ERROR_TO_MESSAGE_KEY_MAP.microphone[TrackErrors.NO_DATA_FROM_SOURCE]
|
74
|
74
|
* Prompt user for nickname.
|
75
|
75
|
*/
|
76
|
76
|
function promptDisplayName() {
|
77
|
|
- let nickRequiredMsg
|
78
|
|
- = APP.translation.translateString("dialog.displayNameRequired");
|
|
77
|
+ let labelKey = 'dialog.enterDisplayName';
|
|
78
|
+ let labelStr = APP.translation.translateString(labelKey);
|
|
79
|
+ let titleStr
|
|
80
|
+ = APP.translation.translateString('dialog.displayNameRequired');
|
79
|
81
|
let defaultNickMsg = APP.translation.translateString("defaultNickname");
|
80
|
|
- let message = `
|
81
|
|
- <h2 data-i18n="dialog.displayNameRequired">${nickRequiredMsg}</h2>
|
82
|
|
- <input name="displayName" type="text"
|
|
82
|
+ let message = (
|
|
83
|
+ `<div class="input-control">
|
|
84
|
+ <label class="input-control__label">${labelStr}</label>
|
|
85
|
+ <input name="displayName" type="text"
|
83
|
86
|
data-i18n="[placeholder]defaultNickname"
|
84
|
|
- placeholder="${defaultNickMsg}" autofocus>`;
|
|
87
|
+ class="input-control__input"
|
|
88
|
+ placeholder="${defaultNickMsg}" autofocus>
|
|
89
|
+ </div>`
|
|
90
|
+ );
|
85
|
91
|
|
86
|
92
|
// Don't use a translation string, because we're too early in the call and
|
87
|
93
|
// the translation may not be initialised.
|
88
|
94
|
let buttons = {Ok:true};
|
89
|
95
|
|
90
|
96
|
let dialog = messageHandler.openDialog(
|
91
|
|
- null,
|
|
97
|
+ titleStr,
|
92
|
98
|
message,
|
93
|
99
|
true,
|
94
|
100
|
buttons,
|