|
@@ -2,14 +2,12 @@ import 'components/dropdown.js';
|
|
import { __ } from 'i18n';
|
|
import { __ } from 'i18n';
|
|
import { html } from "lit-html";
|
|
import { html } from "lit-html";
|
|
import { until } from 'lit-html/directives/until.js';
|
|
import { until } from 'lit-html/directives/until.js';
|
|
-import { converse } from "@converse/headless/core";
|
|
|
|
|
|
+import { _converse, converse } from "@converse/headless/core";
|
|
|
|
|
|
const u = converse.env.utils;
|
|
const u = converse.env.utils;
|
|
|
|
|
|
-
|
|
|
|
const tpl_standalone_btns = (o) => o.standalone_btns.reverse().map(b => until(b, ''));
|
|
const tpl_standalone_btns = (o) => o.standalone_btns.reverse().map(b => until(b, ''));
|
|
|
|
|
|
-
|
|
|
|
export default (o) => {
|
|
export default (o) => {
|
|
const i18n_hide_topic = __('Hide the groupchat topic');
|
|
const i18n_hide_topic = __('Hide the groupchat topic');
|
|
const i18n_bookmarked = __('This groupchat is bookmarked');
|
|
const i18n_bookmarked = __('This groupchat is bookmarked');
|
|
@@ -17,8 +15,8 @@ export default (o) => {
|
|
const show_subject = (subject && !o.subject_hidden);
|
|
const show_subject = (subject && !o.subject_hidden);
|
|
return html`
|
|
return html`
|
|
<div class="chatbox-title ${ show_subject ? '' : "chatbox-title--no-desc"}">
|
|
<div class="chatbox-title ${ show_subject ? '' : "chatbox-title--no-desc"}">
|
|
- ${ (!o._converse.api.settings.get("singleton")) ? html`<div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>` : '' }
|
|
|
|
- <div class="chatbox-title__text" title="${ (o._converse.locked_muc_domain !== 'hidden') ? o.jid : '' }">${ o.title }
|
|
|
|
|
|
+ ${ (!_converse.api.settings.get("singleton")) ? html`<converse-controlbox-navback jid="${o.jid}"></converse-controlbox-navback>` : '' }
|
|
|
|
+ <div class="chatbox-title__text" title="${ (_converse.locked_muc_domain !== 'hidden') ? o.jid : '' }">${ o.title }
|
|
${ (o.bookmarked) ? html`<i class="fa fa-bookmark chatbox-title__text--bookmarked" title="${i18n_bookmarked}"></i>` : '' }
|
|
${ (o.bookmarked) ? html`<i class="fa fa-bookmark chatbox-title__text--bookmarked" title="${i18n_bookmarked}"></i>` : '' }
|
|
</div>
|
|
</div>
|
|
<div class="chatbox-title__buttons row no-gutters">
|
|
<div class="chatbox-title__buttons row no-gutters">
|