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>2021-05-19 18:44:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 18:44:42 +0300
commit4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch)
tree5423a1c7516cffe36384133ade12572cf709398d /app/assets/javascripts/deploy_keys/components/action_btn.vue
parente570267f2f6b326480d284e0164a6464ba4081bc (diff)
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
Diffstat (limited to 'app/assets/javascripts/deploy_keys/components/action_btn.vue')
-rw-r--r--app/assets/javascripts/deploy_keys/components/action_btn.vue29
1 files changed, 20 insertions, 9 deletions
diff --git a/app/assets/javascripts/deploy_keys/components/action_btn.vue b/app/assets/javascripts/deploy_keys/components/action_btn.vue
index af7c391ab70..7bc1eb5d652 100644
--- a/app/assets/javascripts/deploy_keys/components/action_btn.vue
+++ b/app/assets/javascripts/deploy_keys/components/action_btn.vue
@@ -1,10 +1,10 @@
<script>
-import { GlLoadingIcon } from '@gitlab/ui';
+import { GlButton } from '@gitlab/ui';
import eventHub from '../eventhub';
export default {
components: {
- GlLoadingIcon,
+ GlButton,
},
props: {
deployKey: {
@@ -15,10 +15,20 @@ export default {
type: String,
required: true,
},
- btnCssClass: {
+ category: {
type: String,
required: false,
- default: 'btn-default',
+ default: 'tertiary',
+ },
+ variant: {
+ type: String,
+ required: false,
+ default: 'default',
+ },
+ icon: {
+ type: String,
+ required: false,
+ default: '',
},
},
data() {
@@ -39,13 +49,14 @@ export default {
</script>
<template>
- <button
- :class="[{ disabled: isLoading }, btnCssClass]"
- :disabled="isLoading"
+ <gl-button
+ :category="category"
+ :variant="variant"
+ :icon="icon"
+ :loading="isLoading"
class="btn"
@click="doAction"
>
<slot></slot>
- <gl-loading-icon v-if="isLoading" :inline="true" />
- </button>
+ </gl-button>
</template>