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
2b4e5c93
Commit
2b4e5c93
authored
Mar 17, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use secret_key and secret_value in CI variable frontend
parent
53915c5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/ci_variable_list/ci_variable_list.js
app/assets/javascripts/ci_variable_list/ci_variable_list.js
+4
-4
No files found.
app/assets/javascripts/ci_variable_list/ci_variable_list.js
View file @
2b4e5c93
...
...
@@ -29,11 +29,11 @@ export default class VariableList {
selector
:
'
.js-ci-variable-input-id
'
,
default
:
''
,
},
key
:
{
secret_
key
:
{
selector
:
'
.js-ci-variable-input-key
'
,
default
:
''
,
},
value
:
{
secret_
value
:
{
selector
:
'
.js-ci-variable-input-value
'
,
default
:
''
,
},
...
...
@@ -105,7 +105,7 @@ export default class VariableList {
setupToggleButtons
(
$row
[
0
]);
// Reset the resizable textarea
$row
.
find
(
this
.
inputMap
.
value
.
selector
).
css
(
'
height
'
,
''
);
$row
.
find
(
this
.
inputMap
.
secret_
value
.
selector
).
css
(
'
height
'
,
''
);
const
$environmentSelect
=
$row
.
find
(
'
.js-variable-environment-toggle
'
);
if
(
$environmentSelect
.
length
)
{
...
...
@@ -174,7 +174,7 @@ export default class VariableList {
}
toggleEnableRow
(
isEnabled
=
true
)
{
this
.
$container
.
find
(
this
.
inputMap
.
key
.
selector
).
attr
(
'
disabled
'
,
!
isEnabled
);
this
.
$container
.
find
(
this
.
inputMap
.
secret_
key
.
selector
).
attr
(
'
disabled
'
,
!
isEnabled
);
this
.
$container
.
find
(
'
.js-row-remove-button
'
).
attr
(
'
disabled
'
,
!
isEnabled
);
}
...
...
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