forked from MapComplete/MapComplete
Allow toerisme vlaanderen to create import notes
This commit is contained in:
parent
91ca538822
commit
3db57ebb2d
3 changed files with 13 additions and 1 deletions
|
@ -17,9 +17,11 @@ export default class LoginToImport extends Combine implements FlowStep<UserRelat
|
|||
readonly IsValid: UIEventSource<boolean>;
|
||||
readonly Value: UIEventSource<UserRelatedState>;
|
||||
|
||||
private static readonly whitelist = [15015689];
|
||||
|
||||
constructor(state: UserRelatedState) {
|
||||
const t = Translations.t.importHelper
|
||||
const isValid = state.osmConnection.userDetails.map(ud => ud.csCount >= Constants.userJourney.importHelperUnlock)
|
||||
const isValid = state.osmConnection.userDetails.map(ud => LoginToImport.whitelist.indexOf(ud.uid) >= 0 || ud.csCount >= Constants.userJourney.importHelperUnlock)
|
||||
super([
|
||||
new Title(t.userAccountTitle),
|
||||
new LoginToggle(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue