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
f57a4a94
Commit
f57a4a94
authored
May 30, 2017
by
kushalpandya
Committed by
Jarka Kadlecova
Jun 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments for method and minor refinements
parent
4341801a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
app/assets/javascripts/integrations/integration_settings_form.js
...ets/javascripts/integrations/integration_settings_form.js
+7
-2
No files found.
app/assets/javascripts/integrations/integration_settings_form.js
View file @
f57a4a94
...
...
@@ -44,6 +44,9 @@ export default class IntegrationSettingsForm {
this
.
toggleServiceState
(
$
(
e
.
currentTarget
).
is
(
'
:checked
'
));
}
/**
* Change Form's validation enforcement based on service status (active/inactive)
*/
toggleServiceState
(
serviceActive
)
{
this
.
toggleSubmitBtnLabel
(
serviceActive
,
this
.
canTestService
);
if
(
serviceActive
)
{
...
...
@@ -54,7 +57,7 @@ export default class IntegrationSettingsForm {
}
/**
* Toggle Submit button label based on Integration status
* Toggle Submit button label based on Integration status
and ability to test service
*/
toggleSubmitBtnLabel
(
serviceActive
,
canTestService
)
{
this
.
$submitBtnLabel
.
text
(
...
...
@@ -76,7 +79,9 @@ export default class IntegrationSettingsForm {
this
.
$submitBtnLoader
.
removeClass
(
'
hidden
'
);
}
else
{
this
.
$submitBtn
.
enable
();
this
.
$submitBtnLoader
.
addClass
(
'
hidden
'
);
if
(
!
this
.
$submitBtnLoader
.
hasClass
(
'
hidden
'
))
{
this
.
$submitBtnLoader
.
addClass
(
'
hidden
'
);
}
}
}
...
...
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