Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5f73bbc6
Commit
5f73bbc6
authored
Jul 01, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop import spinner when import failed
parent
83770573
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
app/assets/javascripts/importer_status.js
app/assets/javascripts/importer_status.js
+6
-0
No files found.
app/assets/javascripts/importer_status.js
View file @
5f73bbc6
...
...
@@ -45,6 +45,8 @@ class ImporterStatus {
}
$btn
.
disable
().
addClass
(
'
is-loading
'
);
this
.
id
=
id
;
return
axios
.
post
(
this
.
importUrl
,
{
repo_id
:
id
,
target_namespace
:
targetNamespace
,
...
...
@@ -70,6 +72,10 @@ class ImporterStatus {
.
catch
((
error
)
=>
{
let
details
=
error
;
const
jobItem
=
$
(
`#repo_
${
this
.
id
}
`
);
const
statusField
=
jobItem
.
find
(
'
.job-status
'
);
statusField
.
html
(
__
(
'
Failed
'
));
if
(
error
.
response
&&
error
.
response
.
data
&&
error
.
response
.
data
.
errors
)
{
details
=
error
.
response
.
data
.
errors
;
}
...
...
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