Fix morescreen (which shows the custom themes now), remove invalid themes automatically
This commit is contained in:
parent
f771695c0b
commit
1e0a1fdf97
5 changed files with 31 additions and 11 deletions
|
@ -12,11 +12,15 @@ import {Layout} from "../Customizations/Layout";
|
|||
|
||||
export class MoreScreen extends UIElement {
|
||||
|
||||
|
||||
constructor() {
|
||||
super(State.state.locationControl);
|
||||
this.ListenTo(State.state.osmConnection.userDetails);
|
||||
this.ListenTo(State.state.installedThemes);
|
||||
|
||||
|
||||
State.state.installedThemes.addCallback(themes => {
|
||||
console.log("INSTALLED THEMES COUNT:", themes.length)
|
||||
})
|
||||
}
|
||||
|
||||
private createLinkButton(layout: Layout, customThemeDefinition: string = undefined) {
|
||||
|
@ -68,6 +72,7 @@ export class MoreScreen extends UIElement {
|
|||
|
||||
InnerRender(): string {
|
||||
|
||||
console.log("Inner rendering MORE")
|
||||
const tr = Translations.t.general.morescreen;
|
||||
|
||||
const els: UIElement[] = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue