diff --git a/src/assets/scripts/profile/profile.controller.js b/src/assets/scripts/profile/profile.controller.js index 2c0ddc9..18f76d4 100644 --- a/src/assets/scripts/profile/profile.controller.js +++ b/src/assets/scripts/profile/profile.controller.js @@ -33,6 +33,7 @@ const ProfileController = ($scope, $timeout, ProfileService, UserService) => { return; } + $scope.processing = "Sending the data..." ProfileService.updateUserProfile($scope.user.id, $scope.userUpdated) .then((result)=>{ @@ -44,10 +45,11 @@ const ProfileController = ($scope, $timeout, ProfileService, UserService) => { $scope.messages = 'Oops, we received your request, but there was an error processing it.'; }) .finally(() => { - // Hide status messages after three seconds. + $scope.processing = null; + // Hide status messages after five seconds. $timeout(() => { $scope.messages = null; - }, 3000); + }, 5000); }); } diff --git a/src/assets/scripts/profile/profile.html b/src/assets/scripts/profile/profile.html index f1e34d4..15d50fa 100644 --- a/src/assets/scripts/profile/profile.html +++ b/src/assets/scripts/profile/profile.html @@ -30,6 +30,7 @@