revised ui

This commit is contained in:
zino
2021-05-17 18:50:34 +02:00
parent 6786d5f8f6
commit fe19226a4c
11 changed files with 262 additions and 211 deletions

View File

@@ -2,7 +2,7 @@ import * as I from "../types/types";
import { config } from "./config";
import * as State from "./state";
import * as Cart from "./cart";
import * as UI from "./ui";
import * as CartButtons from "./cartButtons";
export function getSeats(): I.JSCSeats {
const seatmapXML: any = config.state.seatmapXML;
@@ -242,7 +242,7 @@ function clickAvailableSeat(inSeatmap: any) {
State.addSeatToState(selectedSeat);
Cart.calcOverallPrice();
UI.setBtnCartText();
CartButtons.setBtnCartText();
return "selected";
}
@@ -251,7 +251,7 @@ function clickedSelectedSeat(inSeatmap: any) {
const selectedSeat: I.JSCSelectedSeat = inSeatmap.settings;
State.removeSeatFromState(selectedSeat);
Cart.calcOverallPrice();
UI.setBtnCartText();
CartButtons.setBtnCartText();
return "available";
}