![Shaun Wu](/assets/img/avatar_default.png)
Had to make various other changes due to incompatibilities. - Use the new `lit` package instead of `lit-html` or `lit-element` - Drop `haunted` since it breaks the rules by specifying `type: module` but then doesn't import with file extensions - Use Sass Dart instead of node-sass (fixes #2445) - Upgrade Karma
18 lines
676 B
JavaScript
18 lines
676 B
JavaScript
import { html } from "lit";
|
|
import tpl_command_form from './ad-hoc-command-form.js';
|
|
|
|
export default (o, command) => html`
|
|
<li class="room-item list-group-item">
|
|
<div class="available-chatroom d-flex flex-row">
|
|
<a class="open-room available-room w-100"
|
|
@click=${o.toggleCommandForm}
|
|
data-command-node="${command.node}"
|
|
data-command-jid="${command.jid}"
|
|
data-command-name="${command.name}"
|
|
title="${command.name}"
|
|
href="#">${command.name || command.jid}</a>
|
|
</div>
|
|
${ command.node === o.showform ? tpl_command_form(o, command) : '' }
|
|
</li>
|
|
`;
|