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>
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';
// 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-';
export default {
components: {
GlIntersperse,
GlDeprecatedButton,
GlButton,
GlLink,
GlModal,
},
......@@ -72,12 +72,12 @@ export default {
<gl-link v-if="license.url" :href="license.url" target="_blank">{{ license.name }}</gl-link>
<template v-else>{{ license.name }}</template>
</span>
<gl-deprecated-button
<gl-button
v-if="hasLicensesInModal"
v-gl-modal-directive="modalId"
variant="link"
class="align-baseline js-license-links-modal-trigger"
>{{ modalButtonText }}</gl-deprecated-button
>{{ modalButtonText }}</gl-button
>
</gl-intersperse>
<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