forked from MapComplete/MapComplete
Move license picker into usersettings, add possibility to highlight a setting
This commit is contained in:
parent
9202cbe8e2
commit
4ed88609e5
16 changed files with 204 additions and 103 deletions
|
@ -19,6 +19,9 @@ export class DefaultGuiState {
|
|||
false
|
||||
)
|
||||
public readonly userInfoIsOpened: UIEventSource<boolean> = new UIEventSource<boolean>(false)
|
||||
public readonly userInfoFocusedQuestion: UIEventSource<string> = new UIEventSource<string>(
|
||||
undefined
|
||||
)
|
||||
public readonly welcomeMessageOpenedTab: UIEventSource<number>
|
||||
|
||||
constructor() {
|
||||
|
@ -38,6 +41,14 @@ export class DefaultGuiState {
|
|||
userinfo: this.userInfoIsOpened,
|
||||
}
|
||||
|
||||
const self = this
|
||||
this.userInfoIsOpened.addCallback((isOpen) => {
|
||||
if (!isOpen) {
|
||||
console.log("Resetting focused question")
|
||||
self.userInfoFocusedQuestion.setData(undefined)
|
||||
}
|
||||
})
|
||||
|
||||
sources[Hash.hash.data?.toLowerCase()]?.setData(true)
|
||||
|
||||
if (Hash.hash.data === "" || Hash.hash.data === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue