Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
7ed45cb5
Commit
7ed45cb5
authored
Nov 12, 2015
by
Ray Schamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop spinner and display XHR errors if they occur
Resolves GH-232
parent
c15b6a96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/components/navigation/navigation.jsx
src/components/navigation/navigation.jsx
+4
-1
No files found.
src/components/navigation/navigation.jsx
View file @
7ed45cb5
...
...
@@ -126,12 +126,14 @@ var Navigation = React.createClass({
json
:
formData
,
useCsrf
:
true
},
function
(
err
,
body
)
{
if
(
err
)
this
.
setState
({
'
loginError
'
:
err
.
message
});
if
(
body
)
{
body
=
body
[
0
];
if
(
!
body
.
success
)
{
if
(
body
.
redirect
)
{
window
.
location
=
body
.
redirect
;
}
// Update login error message to a friendlier one if it exists
this
.
setState
({
'
loginError
'
:
body
.
msg
});
}
else
{
this
.
closeLogin
();
...
...
@@ -142,8 +144,9 @@ var Navigation = React.createClass({
}.
bind
(
this
));
window
.
refreshSession
();
}
callback
();
}
// JS error already logged by api mixin
callback
();
}.
bind
(
this
));
},
handleLogOut
:
function
(
e
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment