Bugfixes. Fix order of parameters and don't render undefined

This commit is contained in:
JC Brand 2020-09-30 18:35:22 +02:00
parent 02a9126ab6
commit ccd9146c6c
3 changed files with 3 additions and 3 deletions

View File

@ -1106,7 +1106,7 @@ export const ChatRoomView = ChatBoxView.extend({
const tmp_result = tpl_muc_nickname_form(this.model.get('nick'));
if (api.settings.get('muc_show_logs_before_join')) {
const container = this.el.querySelector('.muc-bottom-panel');
render(container, tmp_result);
render(tmp_result, container);
u.addClass('muc-bottom-panel--nickname', container);
} else {
const form = this.el.querySelector('.muc-nickname-form');

View File

@ -15,7 +15,7 @@ const form = (o) => {
<label for="chatroom">${i18n_server_address}:</label>
<input type="text"
@change=${o.setDomainFromEvent}
value="${o.muc_domain}"
value="${o.muc_domain || ''}"
required="required"
name="server"
class="form-control"

View File

@ -15,7 +15,7 @@ export default (nickname) => {
<form class="converse-form chatroom-form converse-centered-form">
<fieldset class="form-group">
<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}"/>
</fieldset>
<fieldset class="form-group">