1
0
Fork 0

Correct references on HOLD page

This commit is contained in:
legoboyvdlp R 2020-04-24 12:50:52 +01:00
parent 0ef5d73f14
commit 533f2d964b
2 changed files with 2 additions and 3 deletions

View file

@ -38,8 +38,7 @@ var holdPage = {
return nil;
},
_setupPageWithData: func() {
# me.title = ["LAT REV", " AT ", me.waypoint.wp_name]; TODO FIXME LATREV
me.title = ["HOLD", " AT ", me.waypoint];
me.title = ["LAT REV", " AT ", me.waypoint.wp_name];
me.titleColour = "wht";
me.L1 = [" [ ]", " INB CRS", "blu"];
me.L2 = [" R", " TURN", "blu"];

View file

@ -310,7 +310,7 @@ var lskbutton = func(btn, i) {
canvas_mcdu.myHold[i].del();
}
canvas_mcdu.myHold[i] = nil;
canvas_mcdu.myHold[i] = holdPage.new(i, canvas_mcdu.myLatRev[i].id);
canvas_mcdu.myHold[i] = holdPage.new(i, canvas_mcdu.myLatRev[i].wpt);
setprop("MCDU[" ~ i ~ "]/page", "HOLD");
} else {
notAllowed(i);