forked from MapComplete/MapComplete
Add Wikipedia page box
This commit is contained in:
parent
df34239256
commit
9df263c362
12 changed files with 3605 additions and 3457 deletions
|
@ -1,7 +1,17 @@
|
|||
import {FixedUiElement} from "./FixedUiElement";
|
||||
import {Translation} from "../i18n/Translation";
|
||||
import Combine from "./Combine";
|
||||
import Svg from "../../Svg";
|
||||
import Translations from "../i18n/Translations";
|
||||
|
||||
export default class Loading extends FixedUiElement {
|
||||
constructor() {
|
||||
super("Loading..."); // TODO to be improved
|
||||
export default class Loading extends Combine {
|
||||
constructor(msg?: Translation | string) {
|
||||
const t = Translations.T(msg ) ?? Translations.t.general.loading.Clone();
|
||||
t.SetClass("pl-2")
|
||||
super([
|
||||
Svg.loading_svg().SetClass("animate-spin").SetStyle("width: 1.5rem; height: 1.5rem; margin-bottom: 4px;"),
|
||||
t
|
||||
])
|
||||
this.SetClass("flex m-1")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue