Merge pull request #2263 from pietervdvn/feature/disable-questions

Feature/disable questions
This commit is contained in:
Pieter Vander Vennet 2024-11-25 00:05:42 +00:00 committed by GitHub
commit 4f05f0bc05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
44 changed files with 882 additions and 317 deletions

View file

@ -562,4 +562,14 @@ export default class UserRelatedState {
return amendedPrefs
}
/**
* The disabled questions for this theme and layer
*/
public getThemeDisabled(themeId: string, layerId: string): UIEventSource<string[]> {
const flatSource = this.osmConnection.getPreference("disabled-questions-" + themeId + "-" + layerId, "[]")
return UIEventSource.asObject<string[]>(flatSource, [])
}
}