Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-12 09:09:53 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-12 09:09:53 +0300
commit90156f527b43a15e794c3351ecfc59aff42c440a (patch)
treea59318246adf4297b3911f442b6a789fd38d35a6 /app/assets/javascripts/ci_variable_list
parent737684a392db1178770ad5b1d20b64386aadcac5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ci_variable_list')
-rw-r--r--app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue21
1 files changed, 11 insertions, 10 deletions
diff --git a/app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue b/app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue
index 7b703c5ede1..5002a8fe85d 100644
--- a/app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue
+++ b/app/assets/javascripts/ci_variable_list/components/ci_variable_table.vue
@@ -1,5 +1,5 @@
<script>
-import { GlTable, GlDeprecatedButton, 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,
- GlDeprecatedButton,
+ 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>