|
@@ -1,12 +1,10 @@
|
|
import 'fa-icons';
|
|
import 'fa-icons';
|
|
import xss from "xss/dist/xss";
|
|
import xss from "xss/dist/xss";
|
|
import { CustomElement } from './element.js';
|
|
import { CustomElement } from './element.js';
|
|
-import { _converse, converse } from "@converse/headless/converse-core";
|
|
|
|
|
|
+import { _converse, api } from "@converse/headless/converse-core";
|
|
import { html } from 'lit-element';
|
|
import { html } from 'lit-element';
|
|
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
|
|
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
|
|
|
|
|
|
-const u = converse.env.utils;
|
|
|
|
-
|
|
|
|
|
|
|
|
class ChatHelp extends CustomElement {
|
|
class ChatHelp extends CustomElement {
|
|
|
|
|
|
@@ -23,7 +21,7 @@ class ChatHelp extends CustomElement {
|
|
const icon_color = this.chat_type === _converse.CHATROOMS_TYPE ? 'var(--chatroom-head-bg-color)' : 'var(--chat-head-color)';
|
|
const icon_color = this.chat_type === _converse.CHATROOMS_TYPE ? 'var(--chatroom-head-bg-color)' : 'var(--chat-head-color)';
|
|
const isodate = (new Date()).toISOString();
|
|
const isodate = (new Date()).toISOString();
|
|
return [
|
|
return [
|
|
- html`<fa-icon class="fas fa-times close-chat-help" @click=${this.close} path-prefix="dist" color="${icon_color}" size="1em"></fa-icon>`,
|
|
|
|
|
|
+ html`<fa-icon class="fas fa-times close-chat-help" @click=${this.close} path-prefix="${api.settings.get("assets_path")}" color="${icon_color}" size="1em"></fa-icon>`,
|
|
...this.messages.map(m => this.renderHelpMessage({
|
|
...this.messages.map(m => this.renderHelpMessage({
|
|
isodate,
|
|
isodate,
|
|
'markup': xss.filterXSS(m, {'whiteList': {'strong': []}})
|
|
'markup': xss.filterXSS(m, {'whiteList': {'strong': []}})
|