|
@@ -4,6 +4,7 @@ import { api } from '@converse/headless/core.js';
|
|
|
import { html } from "lit";
|
|
|
import { modal_header_close_button } from "plugins/modal/templates/buttons.js"
|
|
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
|
+import { getAutoCompleteList } from "../utils.js";
|
|
|
|
|
|
|
|
|
const nickname_input = (o) => {
|
|
@@ -34,7 +35,10 @@ export default (o) => {
|
|
|
<div class="form-group">
|
|
|
<label for="chatroom">${o.label_room_address}:</label>
|
|
|
${ (o.muc_roomid_policy_error_msg) ? html`<label class="roomid-policy-error">${o.muc_roomid_policy_error_msg}</label>` : '' }
|
|
|
- <input type="text" required="required" name="chatroom" class="form-control roomjid-input" placeholder="${o.chatroom_placeholder}"/>
|
|
|
+ <converse-autocomplete
|
|
|
+ .getAutoCompleteList="${getAutoCompleteList}"
|
|
|
+ placeholder="${o.chatroom_placeholder}"
|
|
|
+ name="chatroom"/>
|
|
|
</div>
|
|
|
${ o.muc_roomid_policy_hint ? html`<div class="form-group">${unsafeHTML(DOMPurify.sanitize(o.muc_roomid_policy_hint, {'ALLOWED_TAGS': ['b', 'br', 'em']}))}</div>` : '' }
|
|
|
${ !api.settings.get('locked_muc_nickname') ? nickname_input(o) : '' }
|