New page loading and error cases:
* adding new custom elements: spinner and error * using them on async tasks
This commit is contained in:
14
client/common/lib/elements/spinner.ts
Normal file
14
client/common/lib/elements/spinner.ts
Normal file
@ -0,0 +1,14 @@
|
||||
// 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.
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user