Commit 0c2fc348 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'dep-license-link' into 'master'

Dependency list more button migration

Closes #219907

See merge request gitlab-org/gitlab!38624
parents b3707ea3 1c29b67b
<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