Commit 392a59f4 authored by Juan J. Ramirez's avatar Juan J. Ramirez Committed by Illya Klymov

License compliance modal button migration

parent 7bda030d
<script>
import { uniqueId } from 'lodash';
import { GlLink, GlIntersperse, GlModal, GlDeprecatedButton, GlModalDirective } from '@gitlab/ui';
import { GlLink, GlIntersperse, GlModal, GlButton, GlModalDirective } from '@gitlab/ui';
import { sprintf, s__ } from '~/locale';
const MODAL_ID_PREFIX = 'license-component-link-modal-';
......@@ -10,7 +10,7 @@ export default {
components: {
GlIntersperse,
GlLink,
GlDeprecatedButton,
GlButton,
GlModal,
},
directives: {
......@@ -68,14 +68,14 @@ export default {
}}</gl-link>
<template v-else>{{ component.name }}</template>
</span>
<gl-deprecated-button
<gl-button
v-if="hasComponentsInModal"
v-gl-modal-directive="modalId"
variant="link"
class="align-baseline js-component-links-modal-trigger"
>
{{ modalButtonText }}
</gl-deprecated-button>
</gl-button>
</gl-intersperse>
<gl-modal
v-if="hasComponentsInModal"
......
---
title: ee Migrating modal button in License Compliance
merge_request: 40747
author:
type: changed
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