Commit ec746c7d9bf275a14b0882ccec9e6fb63a193b65
1 parent
406deaecb9
Exists in
master
loader added
Showing
4 changed files
with
23 additions
and
0 deletions
Show diff stats
app/css/custom.css
... | ... | @@ -675,4 +675,19 @@ font-size: 10px !important; |
675 | 675 | height: auto !important; |
676 | 676 | min-height: 28px !important; |
677 | 677 | |
678 | +} | |
679 | + | |
680 | +.myLoader{ | |
681 | + width: 100%; | |
682 | + height: 100%; | |
683 | + position: fixed; | |
684 | + z-index: 9999; | |
685 | + top: 0; | |
686 | + left: 0; | |
687 | + text-align: center; | |
688 | + background-color: rgba(0, 0, 0, 0.2); | |
689 | +} | |
690 | +.myLoader img{ | |
691 | + position: relative; | |
692 | + top: calc(50% - 25px); | |
678 | 693 | } |
679 | 694 | \ No newline at end of file | ... | ... |
app/img/hourglass.gif
41.4 KB
app/partials/fuelManager/fuelManager.controller.js
... | ... | @@ -10,14 +10,17 @@ |
10 | 10 | function fuelManagerController($scope, $rootScope, $uibModal, $filter, $http, fuelManagerService) { |
11 | 11 | |
12 | 12 | $scope.currentUserData = JSON.parse(localStorage.getItem('userProfileId')); |
13 | + $scope.showLoader = true; | |
13 | 14 | |
14 | 15 | fuelManagerService.getFullList().then(function(result) { |
15 | 16 | $scope.fullJetList = result; |
17 | + $scope.showLoader = false; | |
16 | 18 | }) |
17 | 19 | |
18 | 20 | $scope.avoidanceList = {}; |
19 | 21 | |
20 | 22 | $scope.updateList = function(fullJetList){ |
23 | + $scope.showLoader = true; | |
21 | 24 | $scope.addData = []; |
22 | 25 | $scope.newJetList = fullJetList; |
23 | 26 | if ($scope.currentUserData == undefined || $scope.currentUserData == null) { |
... | ... | @@ -51,6 +54,7 @@ |
51 | 54 | }) |
52 | 55 | fuelManagerService.getFullList().then(function(result) { |
53 | 56 | $scope.fullJetList = result; |
57 | + $scope.showLoader = false; | |
54 | 58 | }) |
55 | 59 | }) |
56 | 60 | ... | ... |
app/partials/fuelManager/fuelManager.html