diff --git a/docs-parent/TODO b/docs-parent/TODO index 6615600d..e69de29b 100644 --- a/docs-parent/TODO +++ b/docs-parent/TODO @@ -1 +0,0 @@ -- Loading feedback for document (list), document.view, tag.default diff --git a/docs-web/src/main/webapp/app/docs/controller/Navigation.js b/docs-web/src/main/webapp/app/docs/controller/Navigation.js index 01b8323d..8d11ae00 100644 --- a/docs-web/src/main/webapp/app/docs/controller/Navigation.js +++ b/docs-web/src/main/webapp/app/docs/controller/Navigation.js @@ -3,7 +3,7 @@ /** * Navigation controller. */ -App.controller('Navigation', function($scope, $state, $rootScope, User, Restangular) { +App.controller('Navigation', function($scope, $http, $state, $rootScope, User, Restangular) { $rootScope.userInfo = User.userInfo(); /** @@ -16,4 +16,8 @@ App.controller('Navigation', function($scope, $state, $rootScope, User, Restangu }); $event.preventDefault(); }; + + $scope.isLoading = function() { + return $http.pendingRequests.length > 0; + }; }); \ No newline at end of file diff --git a/docs-web/src/main/webapp/img/loader.gif b/docs-web/src/main/webapp/img/loader.gif new file mode 100644 index 00000000..5b33f7e5 Binary files /dev/null and b/docs-web/src/main/webapp/img/loader.gif differ diff --git a/docs-web/src/main/webapp/index.html b/docs-web/src/main/webapp/index.html index 0318c5fa..6379ae6c 100644 --- a/docs-web/src/main/webapp/index.html +++ b/docs-web/src/main/webapp/index.html @@ -60,6 +60,10 @@