Commit 21dfdd32 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch...

Merge branch '229327-migrate-bootstrap-button-to-gitlab-ui-glbutton-in-ee-app-assets-javascripts-vue_shared' into 'master'

Update button icon

See merge request gitlab-org/gitlab!42716
parents 9d239b1a a6516a80
---
title: Replace button component
merge_request: 42716
author:
type: changed
<script> <script>
import { mapActions } from 'vuex'; import { mapActions } from 'vuex';
import { GlDropdown, GlDropdownItem, GlLoadingIcon, GlIcon } from '@gitlab/ui'; import {
GlTooltipDirective,
GlDropdown,
GlDropdownItem,
GlLoadingIcon,
GlIcon,
GlButton,
} from '@gitlab/ui';
import { getIssueStatusFromLicenseStatus } from 'ee/vue_shared/license_compliance/store/utils'; import { getIssueStatusFromLicenseStatus } from 'ee/vue_shared/license_compliance/store/utils';
import { LICENSE_MANAGEMENT } from 'ee/vue_shared/license_compliance/store/constants'; import { LICENSE_MANAGEMENT } from 'ee/vue_shared/license_compliance/store/constants';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
...@@ -16,10 +23,15 @@ export default { ...@@ -16,10 +23,15 @@ export default {
components: { components: {
GlDropdown, GlDropdown,
GlDropdownItem, GlDropdownItem,
GlButton,
GlLoadingIcon, GlLoadingIcon,
GlIcon, GlIcon,
IssueStatusIcon, IssueStatusIcon,
}, },
directives: {
GlTooltip: GlTooltipDirective,
},
props: { props: {
license: { license: {
type: Object, type: Object,
...@@ -85,16 +97,18 @@ export default { ...@@ -85,16 +97,18 @@ export default {
{{ $options[$options.LICENSE_APPROVAL_ACTION.DENY] }} {{ $options[$options.LICENSE_APPROVAL_ACTION.DENY] }}
</gl-dropdown-item> </gl-dropdown-item>
</gl-dropdown> </gl-dropdown>
<button <gl-button
v-gl-tooltip
:title="__('Remove license')"
:aria-label="__('Remove license')"
:disabled="loading" :disabled="loading"
class="btn btn-blank js-remove-button" icon="remove"
type="button" class="js-remove-button gl-ml-3"
category="tertiary"
data-toggle="modal" data-toggle="modal"
data-target="#modal-license-delete-confirmation" data-target="#modal-license-delete-confirmation"
@click="setLicenseInModal(license)" @click="setLicenseInModal(license)"
> />
<gl-icon name="remove" />
</button>
</div> </div>
</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