Commit 1c257ff7 authored by Juan J. Ramirez's avatar Juan J. Ramirez Committed by Miguel Rincon

Migrating old icon button in Approval Rules to GlIcon

parent 654470c5
---
title: Migration of old icon button to component button in Approval Rules (private groups)
merge_request: 39769
author:
type: changed
<script> <script>
import { GlTooltipDirective, GlDeprecatedButton } from '@gitlab/ui'; import { GlTooltipDirective, GlIcon } from '@gitlab/ui';
import Icon from '~/vue_shared/components/icon.vue';
export default { export default {
components: { components: {
GlDeprecatedButton, GlIcon,
Icon,
}, },
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
...@@ -16,16 +14,15 @@ export default { ...@@ -16,16 +14,15 @@ export default {
<template> <template>
<div class="d-flex align-items-center"> <div class="d-flex align-items-center">
<div class="square s24 d-flex-center mr-2 text-tertiary"> <div class="square s24 d-flex-center mr-2 text-tertiary">
<icon name="folder-o" :size="16" /> <gl-icon name="folder-o" :size="16" />
</div> </div>
<span>{{ __('Private group(s)') }}</span> <span>{{ __('Private group(s)') }}</span>
<gl-deprecated-button <gl-icon
v-gl-tooltip v-gl-tooltip
:title="__('One or more groups that you don\'t have access to.')" :title="__('One or more groups that you don\'t have access to.')"
variant="blank" class="ml-1 gl-text-gray-500"
class="ml-1 text-secondary" name="question-o"
> :size="16"
<icon name="question-o" :size="16" /> />
</gl-deprecated-button>
</div> </div>
</template> </template>
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