Commit 1c29b67b authored by Juan J. Ramirez's avatar Juan J. Ramirez Committed by Tim Zallmann

Dependency list button migration

Apply 1 suggestion(s) to 1 file(s)
parent 9ba40bc4
<script> <script>
import { uniqueId } from 'lodash'; import { uniqueId } from 'lodash';
import { GlDeprecatedButton, GlLink, GlModal, GlModalDirective, GlIntersperse } from '@gitlab/ui'; import { GlButton, GlLink, GlModal, GlModalDirective, GlIntersperse } from '@gitlab/ui';
import { sprintf, s__ } from '~/locale'; import { sprintf, s__ } from '~/locale';
// If there are more licenses than this count, a counter will be displayed for the remaining licenses // If there are more licenses than this count, a counter will be displayed for the remaining licenses
...@@ -12,7 +12,7 @@ const MODAL_ID_PREFIX = 'dependency-license-link-modal-'; ...@@ -12,7 +12,7 @@ const MODAL_ID_PREFIX = 'dependency-license-link-modal-';
export default { export default {
components: { components: {
GlIntersperse, GlIntersperse,
GlDeprecatedButton, GlButton,
GlLink, GlLink,
GlModal, GlModal,
}, },
...@@ -72,12 +72,12 @@ export default { ...@@ -72,12 +72,12 @@ export default {
<gl-link v-if="license.url" :href="license.url" target="_blank">{{ license.name }}</gl-link> <gl-link v-if="license.url" :href="license.url" target="_blank">{{ license.name }}</gl-link>
<template v-else>{{ license.name }}</template> <template v-else>{{ license.name }}</template>
</span> </span>
<gl-deprecated-button <gl-button
v-if="hasLicensesInModal" v-if="hasLicensesInModal"
v-gl-modal-directive="modalId" v-gl-modal-directive="modalId"
variant="link" variant="link"
class="align-baseline js-license-links-modal-trigger" class="align-baseline js-license-links-modal-trigger"
>{{ modalButtonText }}</gl-deprecated-button >{{ modalButtonText }}</gl-button
> >
</gl-intersperse> </gl-intersperse>
<div class="js-license-links-modal"> <div class="js-license-links-modal">
......
---
title: Button migration to component on dependency list
merge_request: 38624
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