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
44d07b5f
Commit
44d07b5f
authored
Apr 19, 2021
by
Jarek Ostrowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ci-cd settings buttons to conform to pajamas
MR:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/59695
parent
7c36265f
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
37 additions
and
36 deletions
+37
-36
app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue
...scripts/ci_variable_list/components/ci_variable_table.vue
+13
-10
app/assets/stylesheets/pages/settings_ci_cd.scss
app/assets/stylesheets/pages/settings_ci_cd.scss
+0
-4
app/views/projects/runners/_group_runners.html.haml
app/views/projects/runners/_group_runners.html.haml
+1
-1
app/views/projects/runners/_shared_runners.html.haml
app/views/projects/runners/_shared_runners.html.haml
+2
-2
app/views/projects/triggers/_trigger.html.haml
app/views/projects/triggers/_trigger.html.haml
+2
-2
ee/app/views/projects/protected_environments/_form.html.haml
ee/app/views/projects/protected_environments/_form.html.haml
+1
-1
ee/changelogs/unreleased/273318-update-cicd-settings-buttons.yml
...gelogs/unreleased/273318-update-cicd-settings-buttons.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+0
-3
spec/features/project_variables_spec.rb
spec/features/project_variables_spec.rb
+1
-1
spec/support/shared_examples/features/variable_list_shared_examples.rb
...shared_examples/features/variable_list_shared_examples.rb
+12
-12
No files found.
app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue
View file @
44d07b5f
...
...
@@ -162,22 +162,25 @@ export default {
</p>
</
template
>
</gl-table>
<div
class=
"ci-variable-actions"
:class=
"{ 'justify-content-center': !tableIsNotEmpty }"
>
<gl-button
v-if=
"tableIsNotEmpty"
ref=
"secret-value-reveal-button"
data-qa-selector=
"reveal_ci_variable_value_button"
class=
"gl-mr-3"
@
click=
"toggleValues(!valuesHidden)"
>
{{ valuesButtonText }}
</gl-button
<div
class=
"ci-variable-actions gl-display-flex"
:class=
"{ 'justify-content-center': !tableIsNotEmpty }"
>
<gl-button
ref=
"add-ci-variable"
v-gl-modal-directive=
"$options.modalId"
class=
"gl-mr-3"
data-qa-selector=
"add_ci_variable_button"
variant=
"
success
"
variant=
"
confirm
"
category=
"primary"
>
{{ __('Add Variable') }}
</gl-button
>
{{ __('Add variable') }}
</gl-button
>
<gl-button
v-if=
"tableIsNotEmpty"
ref=
"secret-value-reveal-button"
data-qa-selector=
"reveal_ci_variable_value_button"
@
click=
"toggleValues(!valuesHidden)"
>
{{ valuesButtonText }}
</gl-button
>
</div>
</div>
...
...
app/assets/stylesheets/pages/settings_ci_cd.scss
View file @
44d07b5f
...
...
@@ -11,10 +11,6 @@
.trigger-actions
{
white-space
:
nowrap
;
.btn
{
margin-left
:
10px
;
}
}
.auto-devops-card
{
...
...
app/views/projects/runners/_group_runners.html.haml
View file @
44d07b5f
...
...
@@ -13,7 +13,7 @@
%br
%br
-
if
@project
.
group_runners_enabled?
=
link_to
toggle_group_runners_project_runners_path
(
@project
),
class:
'btn gl-button btn-
warning-secondary
'
,
method: :post
do
=
link_to
toggle_group_runners_project_runners_path
(
@project
),
class:
'btn gl-button btn-
default
'
,
method: :post
do
=
_
(
'Disable group runners'
)
-
else
=
link_to
toggle_group_runners_project_runners_path
(
@project
),
class:
'btn gl-button btn-confirm-secondary'
,
method: :post
do
...
...
app/views/projects/runners/_shared_runners.html.haml
View file @
44d07b5f
...
...
@@ -9,10 +9,10 @@
=
_
(
'Shared runners disabled on group level'
)
-
else
-
if
@project
.
shared_runners_enabled?
=
link_to
toggle_shared_runners_project_runners_path
(
@project
),
class:
'btn gl-button btn-
warning-secondary
'
,
method: :post
do
=
link_to
toggle_shared_runners_project_runners_path
(
@project
),
class:
'btn gl-button btn-
default
'
,
method: :post
do
=
_
(
'Disable shared runners'
)
-
else
=
link_to
toggle_shared_runners_project_runners_path
(
@project
),
class:
'btn gl-button btn-confirm'
,
method: :post
do
=
link_to
toggle_shared_runners_project_runners_path
(
@project
),
class:
'btn gl-button btn-confirm
-secondary
'
,
method: :post
do
=
_
(
'Enable shared runners'
)
for this project
...
...
app/views/projects/triggers/_trigger.html.haml
View file @
44d07b5f
...
...
@@ -30,8 +30,8 @@
%td
.text-right.trigger-actions
-
revoke_trigger_confirmation
=
"By revoking a trigger you will break any processes making use of it. Are you sure?"
-
if
can?
(
current_user
,
:admin_trigger
,
trigger
)
=
link_to
edit_project_trigger_path
(
@project
,
trigger
),
method: :get
,
title:
"Edit"
,
class:
"gl-button btn btn-default btn-
sm
"
do
=
link_to
edit_project_trigger_path
(
@project
,
trigger
),
method: :get
,
title:
"Edit"
,
class:
"gl-button btn btn-default btn-
icon
"
do
=
sprite_icon
(
'pencil'
)
-
if
can?
(
current_user
,
:manage_trigger
,
trigger
)
=
link_to
project_trigger_path
(
@project
,
trigger
),
data:
{
confirm:
revoke_trigger_confirmation
,
testid:
'trigger_revoke_button'
},
method: :delete
,
title:
"Revoke"
,
class:
"gl-button btn btn-default btn-
sm btn-trigger-revoke
"
do
=
link_to
project_trigger_path
(
@project
,
trigger
),
data:
{
confirm:
revoke_trigger_confirmation
,
testid:
'trigger_revoke_button'
},
method: :delete
,
title:
"Revoke"
,
class:
"gl-button btn btn-default btn-
icon btn-trigger-revoke gl-ml-3
"
do
=
sprite_icon
(
'remove'
)
ee/app/views/projects/protected_environments/_form.html.haml
View file @
44d07b5f
...
...
@@ -19,4 +19,4 @@
=
render
partial:
'projects/protected_environments/deploy_access_levels_dropdown'
,
locals:
{
f:
f
}
.card-footer
=
f
.
submit
s_
(
'ProtectedEnvironment|Protect'
),
class:
'
btn-success btn
'
,
disabled:
true
=
f
.
submit
s_
(
'ProtectedEnvironment|Protect'
),
class:
'
gl-button btn btn-confirm
'
,
disabled:
true
ee/changelogs/unreleased/273318-update-cicd-settings-buttons.yml
0 → 100644
View file @
44d07b5f
---
title
:
Update ci-cd settings buttons to conform to pajamas
merge_request
:
59695
author
:
type
:
changed
locale/gitlab.pot
View file @
44d07b5f
...
...
@@ -1868,9 +1868,6 @@ msgstr ""
msgid "Add README"
msgstr ""
msgid "Add Variable"
msgstr ""
msgid "Add Zoom meeting"
msgstr ""
...
...
spec/features/project_variables_spec.rb
View file @
44d07b5f
...
...
@@ -18,7 +18,7 @@ RSpec.describe 'Project variables', :js do
it_behaves_like
'variable list'
it
'adds a new variable with an environment scope'
do
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
page
.
within
(
'#add-ci-variable'
)
do
find
(
'[data-qa-selector="ci_variable_key_field"] input'
).
set
(
'akey'
)
...
...
spec/support/shared_examples/features/variable_list_shared_examples.rb
View file @
44d07b5f
...
...
@@ -8,7 +8,7 @@ RSpec.shared_examples 'variable list' do
end
it
'adds a new CI variable'
do
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
fill_variable
(
'key'
,
'key_value'
)
do
click_button
(
'Add variable'
)
...
...
@@ -22,7 +22,7 @@ RSpec.shared_examples 'variable list' do
end
it
'adds a new protected variable'
do
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
fill_variable
(
'key'
,
'key_value'
)
do
click_button
(
'Add variable'
)
...
...
@@ -37,7 +37,7 @@ RSpec.shared_examples 'variable list' do
end
it
'defaults to unmasked'
do
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
fill_variable
(
'key'
,
'key_value'
)
do
click_button
(
'Add variable'
)
...
...
@@ -149,7 +149,7 @@ RSpec.shared_examples 'variable list' do
end
it
'shows a validation error box about duplicate keys'
do
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
fill_variable
(
'key'
,
'key_value'
)
do
click_button
(
'Add variable'
)
...
...
@@ -157,7 +157,7 @@ RSpec.shared_examples 'variable list' do
wait_for_requests
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
fill_variable
(
'key'
,
'key_value'
)
do
click_button
(
'Add variable'
)
...
...
@@ -170,7 +170,7 @@ RSpec.shared_examples 'variable list' do
end
it
'prevents a variable to be added if no values are provided when a variable is set to masked'
do
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
page
.
within
(
'#add-ci-variable'
)
do
find
(
'[data-qa-selector="ci_variable_key_field"] input'
).
set
(
'empty_mask_key'
)
...
...
@@ -182,7 +182,7 @@ RSpec.shared_examples 'variable list' do
end
it
'shows validation error box about unmaskable values'
do
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
fill_variable
(
'empty_mask_key'
,
'???'
,
protected:
true
,
masked:
true
)
do
expect
(
page
).
to
have_content
(
'This variable can not be masked'
)
...
...
@@ -192,7 +192,7 @@ RSpec.shared_examples 'variable list' do
it
'handles multiple edits and a deletion'
do
# Create two variables
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
fill_variable
(
'akey'
,
'akeyvalue'
)
do
click_button
(
'Add variable'
)
...
...
@@ -200,7 +200,7 @@ RSpec.shared_examples 'variable list' do
wait_for_requests
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
fill_variable
(
'zkey'
,
'zkeyvalue'
)
do
click_button
(
'Add variable'
)
...
...
@@ -224,7 +224,7 @@ RSpec.shared_examples 'variable list' do
wait_for_requests
# Add another variable
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
fill_variable
(
'ckey'
,
'ckeyvalue'
)
do
click_button
(
'Add variable'
)
...
...
@@ -249,7 +249,7 @@ RSpec.shared_examples 'variable list' do
end
it
'defaults to protected'
do
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
page
.
within
(
'#add-ci-variable'
)
do
expect
(
find
(
'[data-testid="ci-variable-protected-checkbox"]'
)).
to
be_checked
...
...
@@ -269,7 +269,7 @@ RSpec.shared_examples 'variable list' do
end
it
'defaults to unprotected'
do
click_button
(
'Add
V
ariable'
)
click_button
(
'Add
v
ariable'
)
page
.
within
(
'#add-ci-variable'
)
do
expect
(
find
(
'[data-testid="ci-variable-protected-checkbox"]'
)).
not_to
be_checked
...
...
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