if user is logged in, use that user as default rower
All checks were successful
CI/CD Pipeline / test (push) Successful in 8m26s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

This commit is contained in:
2024-04-26 09:50:01 +02:00
parent 123b4bd39f
commit fcf86c7ff1
3 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,7 @@ export interface choiceMap {
[details: string]: Choices;
}
declare var loggedin_user_id: string;
let choiceObjects: choiceMap = {};
let boat_in_ottensheim = true;
let boat_reserved_today= true;
@ -176,7 +177,9 @@ function selectBoatChange() {
/** custom code for Etsch */
choiceObjects["newrower"].setChoiceByValue("81");
}
}
}else if (typeof loggedin_user_id !== 'undefined'){
choiceObjects["newrower"].setChoiceByValue(loggedin_user_id);
}
const inputElement = document.getElementById(
"departure",