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
1ff96946
Commit
1ff96946
authored
Aug 12, 2020
by
Suzanne Selhorn
Committed by
Kushal Pandya
Aug 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace gl-deprecated-button with gl-button
Related to:
https://gitlab.com/gitlab-org/gitlab/-/issues/219802
parent
5f2283ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue
...scripts/ci_variable_list/components/ci_variable_table.vue
+11
-10
No files found.
app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue
View file @
1ff96946
<
script
>
import
{
GlTable
,
Gl
Deprecated
Button
,
GlModalDirective
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlTable
,
GlButton
,
GlModalDirective
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
s__
,
__
}
from
'
~/locale
'
;
import
{
mapState
,
mapActions
}
from
'
vuex
'
;
import
{
ADD_CI_VARIABLE_MODAL_ID
}
from
'
../constants
'
;
...
...
@@ -51,7 +51,7 @@ export default {
],
components
:
{
GlTable
,
Gl
Deprecated
Button
,
GlButton
,
GlIcon
,
CiVariablePopover
,
},
...
...
@@ -147,14 +147,14 @@ export default {
</div>
</
template
>
<
template
#cell(actions)=
"{ item }"
>
<gl-
deprecated-
button
<gl-button
ref=
"edit-ci-variable"
v-gl-modal-directive=
"$options.modalId"
icon=
"pencil"
:aria-label=
"__('Edit')"
data-qa-selector=
"edit_ci_variable_button"
@
click=
"editVariable(item)"
>
<gl-icon
:size=
"$options.iconSize"
name=
"pencil"
/>
</gl-deprecated-button>
/>
</
template
>
<
template
#empty
>
<p
ref=
"empty-variables"
class=
"text-center empty-variables text-plain"
>
...
...
@@ -166,20 +166,21 @@ export default {
class=
"ci-variable-actions d-flex justify-content-end"
:class=
"{ 'justify-content-center': !tableIsNotEmpty }"
>
<gl-
deprecated-
button
<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-
deprecated-
button
>
{{ valuesButtonText }}
</gl-button
>
<gl-
deprecated-
button
<gl-button
ref=
"add-ci-variable"
v-gl-modal-directive=
"$options.modalId"
data-qa-selector=
"add_ci_variable_button"
variant=
"success"
>
{{ __('Add Variable') }}
</gl-deprecated-button
category=
"primary"
>
{{ __('Add Variable') }}
</gl-button
>
</div>
</div>
...
...
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