597afc8ba6
* adding new custom elements: spinner and error * using them on async tasks
15 lines
468 B
TypeScript
15 lines
468 B
TypeScript
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import { html, TemplateResult } from 'lit'
|
|
import { customElement } from 'lit/decorators.js'
|
|
import { LivechatElement } from './livechat'
|
|
|
|
@customElement('livechat-spinner')
|
|
export class SpinnerElement extends LivechatElement {
|
|
protected override render = (): TemplateResult => {
|
|
return html`<div></div>` // CSS does the trick.
|
|
}
|
|
}
|