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
c59f80ff
Commit
c59f80ff
authored
May 04, 2017
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change error handling for api callback - check length is not zero on jquery el
parent
082b868e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
app/assets/javascripts/issue_show/actions/tasks.js
app/assets/javascripts/issue_show/actions/tasks.js
+1
-1
app/assets/javascripts/issue_show/issue_title_description.vue
...assets/javascripts/issue_show/issue_title_description.vue
+1
-6
No files found.
app/assets/javascripts/issue_show/actions/tasks.js
View file @
c59f80ff
...
@@ -15,7 +15,7 @@ export default (newStateData, tasks) => {
...
@@ -15,7 +15,7 @@ export default (newStateData, tasks) => {
tasksStates
.
currentState
=
tasks
.
indexOf
(
'
0 of 0
'
)
===
0
;
tasksStates
.
currentState
=
tasks
.
indexOf
(
'
0 of 0
'
)
===
0
;
}
}
if
(
$tasks
&&
!
tasksStates
.
newState
)
{
if
(
$tasks
.
length
!==
0
&&
!
tasksStates
.
newState
)
{
$tasks
.
text
(
newStateData
.
task_status
);
$tasks
.
text
(
newStateData
.
task_status
);
$tasksShort
.
text
(
newStateData
.
task_status
);
$tasksShort
.
text
(
newStateData
.
task_status
);
}
else
if
(
tasksStates
.
currentState
)
{
}
else
if
(
tasksStates
.
currentState
)
{
...
...
app/assets/javascripts/issue_show/issue_title_description.vue
View file @
c59f80ff
...
@@ -25,12 +25,7 @@ export default {
...
@@ -25,12 +25,7 @@ export default {
this
.
renderResponse
(
res
);
this
.
renderResponse
(
res
);
},
},
errorCallback
:
(
err
)
=>
{
errorCallback
:
(
err
)
=>
{
if
(
process
.
env
.
NODE_ENV
!==
'
production
'
)
{
throw
new
Error
(
err
);
// eslint-disable-next-line no-console
console
.
error
(
'
ISSUE SHOW REALTIME ERROR
'
,
err
,
err
.
stack
);
}
else
{
throw
new
Error
(
err
);
}
},
},
});
});
...
...
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