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
df9a632e
Commit
df9a632e
authored
Nov 22, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unhandled promise rejection errors
parent
7153b271
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
11 deletions
+2
-11
app/assets/javascripts/add_gitlab_slack_application/components/add_gitlab_slack_application.vue
...k_application/components/add_gitlab_slack_application.vue
+0
-4
app/assets/javascripts/add_gitlab_slack_application/services/gitlab_slack_service.js
...gitlab_slack_application/services/gitlab_slack_service.js
+1
-6
spec/javascripts/add_gitlab_slack_application/components/add_gitlab_slack_application_spec.js
...plication/components/add_gitlab_slack_application_spec.js
+1
-1
No files found.
app/assets/javascripts/add_gitlab_slack_application/components/add_gitlab_slack_application.vue
View file @
df9a632e
...
...
@@ -79,10 +79,6 @@
.
catch
(()
=>
Flash
(
'
Unable to build Slack link.
'
));
},
},
mounted
()
{
GitlabSlackService
.
init
();
},
};
</
script
>
...
...
app/assets/javascripts/add_gitlab_slack_application/services/gitlab_slack_service.js
View file @
df9a632e
import
axios
from
'
axios
'
;
import
setAxiosCsrfToken
from
'
../../lib/utils/axios_utils
'
;
import
axios
from
'
../../lib/utils/axios_utils
'
;
export
default
{
init
()
{
setAxiosCsrfToken
();
},
addToSlack
(
url
,
projectId
)
{
return
axios
.
get
(
url
,
{
params
:
{
...
...
spec/javascripts/add_gitlab_slack_application/components/add_gitlab_slack_application_spec.js
View file @
df9a632e
...
...
@@ -9,7 +9,7 @@ describe('AddGitlabSlackApplication', () => {
const
gitlabForSlackGifPath
=
'
//gitlabForSlackGifPath
'
;
const
signInPath
=
'
//signInPath
'
;
const
slackLinkPath
=
'
//slackLinkPath
'
;
const
docsPath
=
'
//
s
'
;
const
docsPath
=
'
//
docsPath
'
;
const
gitlabLogoPath
=
'
//gitlabLogoPath
'
;
const
slackLogoPath
=
'
//slackLogoPath
'
;
const
projects
=
[{
...
...
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