Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 9303e7d

Browse files
author
vikasrohit
committed
SUP-1534, Handle double-click scenario for registration page.
Removed dynamic message logic because it is not working as expected.
1 parent d94091d commit 9303e7d

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

app/account/register/register.controller.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,15 @@
6767
}
6868
}
6969
$log.debug('attempting to register user');
70-
vm.busyMessage = "Registering..";
7170
TcAuthService.register(body)
7271
.then(function(data) {
7372
$log.debug('registered successfully');
74-
vm.busyMessage = CONSTANTS.BUSY_PROGRESS_MESSAGE;
7573

7674
// In the future, go to dashboard
7775
$state.go('registeredSuccessfully');
7876
})
7977
.catch(function(err) {
8078
$log.error('Error in registering new user: ', err);
81-
vm.busyMessage = CONSTANTS.BUSY_PROGRESS_MESSAGE;
8279
});
8380
};
8481

app/topcoder.constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ angular.module("CONSTANTS", [])
2828
"STATE_LOADING": "loading",
2929
"STATE_ERROR": "error",
3030
"STATE_READY": "ready",
31-
"BUSY_PROGRESS_MESSAGE" : "Processing.."
31+
"BUSY_PROGRESS_MESSAGE": "Processing.."
3232
})
3333

3434
;

config.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ module.exports = function() {
3232

3333
STATE_LOADING: 'loading',
3434
STATE_ERROR: 'error',
35-
STATE_READY: 'ready'
35+
STATE_READY: 'ready',
36+
37+
BUSY_PROGRESS_MESSAGE : 'Processing..'
3638

3739
}
3840
},
@@ -68,7 +70,9 @@ module.exports = function() {
6870

6971
STATE_LOADING: 'loading',
7072
STATE_ERROR: 'error',
71-
STATE_READY: 'ready'
73+
STATE_READY: 'ready',
74+
75+
BUSY_PROGRESS_MESSAGE : 'Processing..'
7276

7377
}
7478
},
@@ -104,7 +108,9 @@ module.exports = function() {
104108

105109
STATE_LOADING: 'loading',
106110
STATE_ERROR: 'error',
107-
STATE_READY: 'ready'
111+
STATE_READY: 'ready',
112+
113+
BUSY_PROGRESS_MESSAGE : 'Processing..'
108114

109115
}
110116
}

0 commit comments

Comments
 (0)