Skip to content

Commit

Permalink
Merge branch 'app-1110-unlock-screen-car-number' into app/development
Browse files Browse the repository at this point in the history
  • Loading branch information
kristopolous committed Apr 11, 2018
2 parents c41f0e4 + ecc9a34 commit b395875
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions www/js/controllers/active-booking-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function ActiveBookingController ($scope, $rootScope, $injector) {
if (_locationWatch && _locationWatch.isActive()) {
return;
}
var iy = iz++;
var iy = iz++;

_locationWatch = LocationService.watchLocation(function (currentLocation, isInitialCall) {
console.log(iy);
Expand Down Expand Up @@ -278,13 +278,18 @@ function ActiveBookingController ($scope, $rootScope, $injector) {
// process right before flaunting the unlock screen
$data.resources.cars.connect({id: $data.active.cars.id});

var plateNumber = $data.active.cars.license;
if($data.active.cars.plateNumber) {
plateNumber += ' (' + data.active.cars.plateNumber + ')';
}

$modal('result', {
title: 'You\'re In Reach',
message: 'Now you can unlock your WaiveCar!\nPlease note that there\'s a brief survey with the Ioniqs after the first three rides.',
message: 'Welcome to ' + plateNumber + '. Now you can unlock your WaiveCar!\nPlease note that there\'s a brief survey with the Ioniqs after the first three rides.',
icon: 'check-icon',
actions: [{
className: 'button-balanced',
text: 'Unlock',
text: 'Unlock ' + $data.active.cars.license,
handler: onUnlock
}, {
className: 'button-dark',
Expand Down Expand Up @@ -349,7 +354,7 @@ function ActiveBookingController ($scope, $rootScope, $injector) {
var res = $data.resources.cars.connect({id: this.car.id}).catch(function() {
console.log("unable to connect");
});

res.then(function(lll) {
$ionicLoading.hide();
showUnlock();
Expand Down

0 comments on commit b395875

Please sign in to comment.