Skip to content

Commit

Permalink
Make sure already scanned notification pops up
Browse files Browse the repository at this point in the history
  • Loading branch information
javfg committed Aug 20, 2021
1 parent c326290 commit e62e533
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions www/js/controllers/navigationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ angular.module('Checkinapp.navigationController', []).controller('NavigationCont
checkinSecret,
scanned: true,
});
$scope.$emit('$locationChangeSuccess');
$scope.$apply();
});
};
Expand All @@ -37,8 +38,12 @@ angular.module('Checkinapp.navigationController', []).controller('NavigationCont
const spinnerList = new Spinner({lines: 8, length: 4, width: 3, radius: 3, color: '#464646', speed: 0.7}).spin();
const spinnerEmpty = new Spinner({lines: 8, length: 4, width: 3, radius: 3, color: '#464646', speed: 0.7}).spin();
$scope.loading = true;
document.getElementById('events-spinner-container').appendChild(spinnerList.el);
document.getElementById('events-empty-spinner-container').appendChild(spinnerEmpty.el);

document.getElementById('spinner-container').appendChild(spinnerList.el);
const emptySpinnerContainer = document.getElementById('empty-spinner-container');
if (emptySpinnerContainer) {
emptySpinnerContainer.appendChild(spinnerEmpty.el);
}

scanQRCode(async data => {
const eventData = {
Expand Down

0 comments on commit e62e533

Please sign in to comment.