forked from MapComplete/MapComplete
Feat: allow to disable questions (and to enable them again), fix #256
This commit is contained in:
parent
f8ef32f123
commit
93ebdd8e16
8 changed files with 238 additions and 76 deletions
|
@ -545,4 +545,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, [])
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue