diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-04 21:12:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-04 21:12:46 +0300 |
commit | 8a0a54ab92c509c6b480059a5f2730869c99d454 (patch) | |
tree | fd963a83cd9991663b525e485cae8af8b0851b88 /app/assets/javascripts/environments/components/environment_rollback.vue | |
parent | e9ab4187093f05b873b32045295eeb580c97cdce (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/environments/components/environment_rollback.vue')
-rw-r--r-- | app/assets/javascripts/environments/components/environment_rollback.vue | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/app/assets/javascripts/environments/components/environment_rollback.vue b/app/assets/javascripts/environments/components/environment_rollback.vue index c0b4e96cea2..00497b3c683 100644 --- a/app/assets/javascripts/environments/components/environment_rollback.vue +++ b/app/assets/javascripts/environments/components/environment_rollback.vue @@ -5,16 +5,15 @@ * * Makes a post request when the button is clicked. */ -import { GlTooltipDirective, GlModalDirective, GlButton } from '@gitlab/ui'; +import { GlModalDirective, GlDropdownItem } from '@gitlab/ui'; import { s__ } from '~/locale'; import eventHub from '../event_hub'; export default { components: { - GlButton, + GlDropdownItem, }, directives: { - GlTooltip: GlTooltipDirective, GlModal: GlModalDirective, }, props: { @@ -65,14 +64,7 @@ export default { }; </script> <template> - <gl-button - v-gl-tooltip - v-gl-modal.confirm-rollback-modal - class="gl-display-none gl-md-display-block text-secondary" - :loading="isLoading" - :title="title" - :aria-label="title" - :icon="isLastDeployment ? 'repeat' : 'redo'" - @click="onClick" - /> + <gl-dropdown-item v-gl-modal.confirm-rollback-modal @click="onClick"> + {{ title }} + </gl-dropdown-item> </template> |