Allow toerisme vlaanderen to create import notes

This commit is contained in:
pietervdvn 2022-02-04 16:35:36 +01:00
parent 91ca538822
commit 3db57ebb2d
3 changed files with 13 additions and 1 deletions

View file

@ -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(

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View file

@ -0,0 +1,10 @@
{
"authors": [
"Toerisme Vlaanderen"
],
"path": "avatar.png",
"license": "Logo",
"sources": [
"https://toerismevlaanderen.be/"
]
}