Commit 1ff96946 authored by Suzanne Selhorn's avatar Suzanne Selhorn Committed by Kushal Pandya

Replace gl-deprecated-button with gl-button

Related to: https://gitlab.com/gitlab-org/gitlab/-/issues/219802
parent 5f2283ed
<script> <script>
import { GlTable, GlDeprecatedButton, GlModalDirective, GlIcon } from '@gitlab/ui'; import { GlTable, GlButton, GlModalDirective, GlIcon } from '@gitlab/ui';
import { s__, __ } from '~/locale'; import { s__, __ } from '~/locale';
import { mapState, mapActions } from 'vuex'; import { mapState, mapActions } from 'vuex';
import { ADD_CI_VARIABLE_MODAL_ID } from '../constants'; import { ADD_CI_VARIABLE_MODAL_ID } from '../constants';
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
], ],
components: { components: {
GlTable, GlTable,
GlDeprecatedButton, GlButton,
GlIcon, GlIcon,
CiVariablePopover, CiVariablePopover,
}, },
...@@ -147,14 +147,14 @@ export default { ...@@ -147,14 +147,14 @@ export default {
</div> </div>
</template> </template>
<template #cell(actions)="{ item }"> <template #cell(actions)="{ item }">
<gl-deprecated-button <gl-button
ref="edit-ci-variable" ref="edit-ci-variable"
v-gl-modal-directive="$options.modalId" v-gl-modal-directive="$options.modalId"
icon="pencil"
:aria-label="__('Edit')"
data-qa-selector="edit_ci_variable_button" data-qa-selector="edit_ci_variable_button"
@click="editVariable(item)" @click="editVariable(item)"
> />
<gl-icon :size="$options.iconSize" name="pencil" />
</gl-deprecated-button>
</template> </template>
<template #empty> <template #empty>
<p ref="empty-variables" class="text-center empty-variables text-plain"> <p ref="empty-variables" class="text-center empty-variables text-plain">
...@@ -166,20 +166,21 @@ export default { ...@@ -166,20 +166,21 @@ export default {
class="ci-variable-actions d-flex justify-content-end" class="ci-variable-actions d-flex justify-content-end"
:class="{ 'justify-content-center': !tableIsNotEmpty }" :class="{ 'justify-content-center': !tableIsNotEmpty }"
> >
<gl-deprecated-button <gl-button
v-if="tableIsNotEmpty" v-if="tableIsNotEmpty"
ref="secret-value-reveal-button" ref="secret-value-reveal-button"
data-qa-selector="reveal_ci_variable_value_button" data-qa-selector="reveal_ci_variable_value_button"
class="gl-mr-3" class="gl-mr-3"
@click="toggleValues(!valuesHidden)" @click="toggleValues(!valuesHidden)"
>{{ valuesButtonText }}</gl-deprecated-button >{{ valuesButtonText }}</gl-button
> >
<gl-deprecated-button <gl-button
ref="add-ci-variable" ref="add-ci-variable"
v-gl-modal-directive="$options.modalId" v-gl-modal-directive="$options.modalId"
data-qa-selector="add_ci_variable_button" data-qa-selector="add_ci_variable_button"
variant="success" variant="success"
>{{ __('Add Variable') }}</gl-deprecated-button category="primary"
>{{ __('Add Variable') }}</gl-button
> >
</div> </div>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment