forked from MapComplete/MapComplete
Full code cleanup
This commit is contained in:
parent
8e6ee8c87f
commit
bd21212eba
246 changed files with 19418 additions and 11729 deletions
|
@ -1,4 +1,3 @@
|
|||
import {FixedUiElement} from "./FixedUiElement";
|
||||
import {Translation} from "../i18n/Translation";
|
||||
import Combine from "./Combine";
|
||||
import Svg from "../../Svg";
|
||||
|
@ -6,11 +5,11 @@ import Translations from "../i18n/Translations";
|
|||
|
||||
export default class Loading extends Combine {
|
||||
constructor(msg?: Translation | string) {
|
||||
const t = Translations.T(msg ) ?? Translations.t.general.loading.Clone();
|
||||
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;"),
|
||||
t
|
||||
t
|
||||
])
|
||||
this.SetClass("flex p-1")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue