add tests and fix npm build, make frontend tests work @ mobile view
Reviewed-on: #224
This commit is contained in:
@ -107,6 +107,7 @@ interface ChoiceBoatEvent extends Event{
|
||||
amount_seats: number,
|
||||
owner: number,
|
||||
default_destination: string,
|
||||
boat_in_ottensheim: boolean,
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -277,6 +278,7 @@ interface ChoiceEvent extends Event{
|
||||
is_cox: boolean,
|
||||
steers: boolean,
|
||||
cox_on_boat: boolean,
|
||||
is_racing: boolean,
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -323,7 +325,7 @@ function initNewChoice(select: HTMLInputElement) {
|
||||
},
|
||||
callbackOnInit: function() {
|
||||
this._currentState.items.forEach(function(obj){
|
||||
if (boat_in_ottensheim) {
|
||||
if (boat_in_ottensheim && obj.customProperties) {
|
||||
if (obj.customProperties.is_racing) {
|
||||
const coxSelect = <HTMLSelectElement>document.querySelector('#shipmaster-' + select.id + 'js');
|
||||
var new_option = new Option(obj.label, obj.value);
|
||||
@ -359,7 +361,7 @@ function initNewChoice(select: HTMLInputElement) {
|
||||
const user_id = event.detail.value;
|
||||
const name = event.detail.label;
|
||||
|
||||
if (boat_in_ottensheim) {
|
||||
if (boat_in_ottensheim && event.detail.customProperties.is_racing) {
|
||||
if (event.detail.customProperties.is_racing) {
|
||||
const coxSelect = <HTMLSelectElement>document.querySelector('#shipmaster-' + select.id + 'js');
|
||||
if (coxSelect){
|
||||
|
Reference in New Issue
Block a user