diff --git a/src/main/resources/static/src/consumer.js b/src/main/resources/static/src/consumer.js index 4743115..77d3ac2 100644 --- a/src/main/resources/static/src/consumer.js +++ b/src/main/resources/static/src/consumer.js @@ -58,6 +58,9 @@ module.controller('consumerController', ['$scope', 'ngDialog', '$http','Notifica $scope.filterList($scope.paginationConf.currentPage) }; $scope.refreshConsumerData = function () { + //Show loader + $('#loaderConsumer').removeClass("hide-myloader"); + $http({ method: "GET", url: "consumer/groupList.query" @@ -67,6 +70,9 @@ module.controller('consumerController', ['$scope', 'ngDialog', '$http','Notifica console.log($scope.allConsumerGrouopList); console.log(JSON.stringify(resp)); $scope.showConsumerGroupList($scope.paginationConf.currentPage,$scope.allConsumerGrouopList.length); + + //Hide loader + $('#loaderConsumer').addClass("hide-myloader"); }else { Notification.error({message: resp.errMsg, delay: 2000}); } diff --git a/src/main/resources/static/style/preLoading/main.css b/src/main/resources/static/style/preLoading/main.css index 9f5b0b7..54d2f08 100755 --- a/src/main/resources/static/style/preLoading/main.css +++ b/src/main/resources/static/style/preLoading/main.css @@ -418,3 +418,25 @@ h1 { Anyway I don't really mind it. This is a great way to learn so you actually doing the right thing:) Follow me @ihatetomatoes */ + + +.myloader { + border: 16px solid #f3f3f3; /* Light grey */ + border-top: 16px solid #3498db; /* Blue */ + border-radius: 50%; + width: 120px; + height: 120px; + animation: spin 2s linear infinite; + } + + +.hide-myloader { + display:none; +} + +.centered { + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} \ No newline at end of file diff --git a/src/main/resources/static/view/pages/consumer.html b/src/main/resources/static/view/pages/consumer.html index 512accc..d8dfe4e 100644 --- a/src/main/resources/static/view/pages/consumer.html +++ b/src/main/resources/static/view/pages/consumer.html @@ -16,6 +16,8 @@ -->