Bugfixes. Fix order of parameters and don't render undefined
This commit is contained in:
parent
02a9126ab6
commit
ccd9146c6c
@ -1106,7 +1106,7 @@ export const ChatRoomView = ChatBoxView.extend({
|
|||||||
const tmp_result = tpl_muc_nickname_form(this.model.get('nick'));
|
const tmp_result = tpl_muc_nickname_form(this.model.get('nick'));
|
||||||
if (api.settings.get('muc_show_logs_before_join')) {
|
if (api.settings.get('muc_show_logs_before_join')) {
|
||||||
const container = this.el.querySelector('.muc-bottom-panel');
|
const container = this.el.querySelector('.muc-bottom-panel');
|
||||||
render(container, tmp_result);
|
render(tmp_result, container);
|
||||||
u.addClass('muc-bottom-panel--nickname', container);
|
u.addClass('muc-bottom-panel--nickname', container);
|
||||||
} else {
|
} else {
|
||||||
const form = this.el.querySelector('.muc-nickname-form');
|
const form = this.el.querySelector('.muc-nickname-form');
|
||||||
|
@ -15,7 +15,7 @@ const form = (o) => {
|
|||||||
<label for="chatroom">${i18n_server_address}:</label>
|
<label for="chatroom">${i18n_server_address}:</label>
|
||||||
<input type="text"
|
<input type="text"
|
||||||
@change=${o.setDomainFromEvent}
|
@change=${o.setDomainFromEvent}
|
||||||
value="${o.muc_domain}"
|
value="${o.muc_domain || ''}"
|
||||||
required="required"
|
required="required"
|
||||||
name="server"
|
name="server"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
|
@ -15,7 +15,7 @@ export default (nickname) => {
|
|||||||
<form class="converse-form chatroom-form converse-centered-form">
|
<form class="converse-form chatroom-form converse-centered-form">
|
||||||
<fieldset class="form-group">
|
<fieldset class="form-group">
|
||||||
<label>${i18n_heading}</label>
|
<label>${i18n_heading}</label>
|
||||||
<input type="text" required="required" name="nick" value="${nickname}"
|
<input type="text" required="required" name="nick" value="${nickname || ''}"
|
||||||
class="form-control" placeholder="${i18n_nickname}"/>
|
class="form-control" placeholder="${i18n_nickname}"/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset class="form-group">
|
<fieldset class="form-group">
|
||||||
|
Loading…
Reference in New Issue
Block a user