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
02ab6647
Commit
02ab6647
authored
Apr 30, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
75f428d0
168cd1ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
app/assets/javascripts/integrations/integration_settings_form.js
...ets/javascripts/integrations/integration_settings_form.js
+5
-4
No files found.
app/assets/javascripts/integrations/integration_settings_form.js
View file @
02ab6647
import
$
from
'
jquery
'
;
import
axios
from
'
../lib/utils/axios_utils
'
;
import
flash
from
'
../flash
'
;
import
{
__
}
from
'
~/locale
'
;
export
default
class
IntegrationSettingsForm
{
constructor
(
formSelector
)
{
...
...
@@ -65,10 +66,10 @@ export default class IntegrationSettingsForm {
* Toggle Submit button label based on Integration status and ability to test service
*/
toggleSubmitBtnLabel
(
serviceActive
)
{
let
btnLabel
=
'
Save changes
'
;
let
btnLabel
=
__
(
'
Save changes
'
)
;
if
(
serviceActive
&&
this
.
canTestService
)
{
btnLabel
=
'
Test settings and save changes
'
;
btnLabel
=
__
(
'
Test settings and save changes
'
)
;
}
this
.
$submitBtnLabel
.
text
(
btnLabel
);
...
...
@@ -105,7 +106,7 @@ export default class IntegrationSettingsForm {
if
(
data
.
test_failed
)
{
flashActions
=
{
title
:
'
Save anyway
'
,
title
:
__
(
'
Save anyway
'
)
,
clickHandler
:
e
=>
{
e
.
preventDefault
();
this
.
$form
.
submit
();
...
...
@@ -121,7 +122,7 @@ export default class IntegrationSettingsForm {
this
.
toggleSubmitBtnState
(
false
);
})
.
catch
(()
=>
{
flash
(
'
Something went wrong on our end.
'
);
flash
(
__
(
'
Something went wrong on our end.
'
)
);
this
.
toggleSubmitBtnState
(
false
);
});
}
...
...
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