implement default destination for boats
This commit is contained in:
@ -105,6 +105,7 @@ interface ChoiceBoatEvent extends Event{
|
||||
customProperties: {
|
||||
amount_seats: number,
|
||||
owner: number,
|
||||
default_destination: string,
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -125,6 +126,9 @@ function selectBoatChange() {
|
||||
const amount_seats = event.detail.customProperties.amount_seats;
|
||||
setMaxAmountRowers("newrower", amount_seats);
|
||||
|
||||
const destination = <HTMLSelectElement>document.querySelector('#destination');
|
||||
destination.value = event.detail.customProperties.default_destination;
|
||||
|
||||
if (event.detail.customProperties.owner){
|
||||
choiceObjects["newrower"].setChoiceByValue(event.detail.customProperties.owner+"");
|
||||
}
|
||||
|
Reference in New Issue
Block a user