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
965ff965
Commit
965ff965
authored
Feb 02, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added missing calls in catch statements
parent
645d6359
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
app/assets/javascripts/merge_conflicts/merge_conflicts_bundle.js
...ets/javascripts/merge_conflicts/merge_conflicts_bundle.js
+1
-0
app/assets/javascripts/merge_request_tabs.js
app/assets/javascripts/merge_request_tabs.js
+9
-3
No files found.
app/assets/javascripts/merge_conflicts/merge_conflicts_bundle.js
View file @
965ff965
...
...
@@ -53,6 +53,7 @@ $(() => {
});
})
.
catch
(()
=>
{
mergeConflictsStore
.
setLoadingState
(
false
);
mergeConflictsStore
.
setFailedRequest
();
});
},
...
...
app/assets/javascripts/merge_request_tabs.js
View file @
965ff965
...
...
@@ -2,7 +2,7 @@
import
Cookies
from
'
js-cookie
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
F
lash
from
'
./flash
'
;
import
f
lash
from
'
./flash
'
;
import
BlobForkSuggestion
from
'
./blob/blob_fork_suggestion
'
;
import
initChangesDropdown
from
'
./init_changes_dropdown
'
;
import
bp
from
'
./breakpoints
'
;
...
...
@@ -257,7 +257,10 @@ export default class MergeRequestTabs {
this
.
toggleLoading
(
false
);
})
.
catch
(()
=>
new
Flash
(
'
An error occurred while fetching this tab.
'
,
'
alert
'
));
.
catch
(()
=>
{
this
.
toggleLoading
(
false
);
flash
(
'
An error occurred while fetching this tab.
'
);
});
}
mountPipelinesView
()
{
...
...
@@ -344,7 +347,10 @@ export default class MergeRequestTabs {
this
.
toggleLoading
(
false
);
})
.
catch
(()
=>
Flash
(
'
An error occurred while fetching this tab.
'
,
'
alert
'
));
.
catch
(()
=>
{
this
.
toggleLoading
(
false
);
flash
(
'
An error occurred while fetching this tab.
'
);
});
}
// Show or hide the loading spinner
...
...
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