From 4cc59c4d12756e0847435a85644f6be2f4e717c1 Mon Sep 17 00:00:00 2001 From: Mohammed Tantawy <6102@ait.nsw.edu.au> Date: Tue, 12 Feb 2019 19:39:59 +1100 Subject: [PATCH] minor fix --- src/assets/scripts/profile/profile.controller.js | 6 ++++-- src/assets/scripts/profile/profile.html | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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 @@
+
Your Profile
@@ -417,7 +418,7 @@
- +