Commit fef5948e authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch 'migrate-btn-vul-charts' into 'master'

Button migration vulnerability charts

Closes #219897

See merge request gitlab-org/gitlab!38610
parents ae7c2b59 45ecf8f1
---
title: Button migration vulnerability charts
merge_request: 38610
author:
type: changed
<script> <script>
import { GlDeprecatedButton } from '@gitlab/ui'; import { GlButton } from '@gitlab/ui';
import { n__ } from '~/locale'; import { n__ } from '~/locale';
export default { export default {
name: 'VulnerabilityChartButtons', name: 'VulnerabilityChartButtons',
components: { components: {
GlDeprecatedButton, GlButton,
}, },
props: { props: {
days: { days: {
...@@ -32,15 +32,14 @@ export default { ...@@ -32,15 +32,14 @@ export default {
<template> <template>
<div class="btn-group w-100"> <div class="btn-group w-100">
<gl-deprecated-button <gl-button
v-for="day in days" v-for="day in days"
:key="day" :key="day"
:class="{ active: activeDay === day }" :class="{ active: activeDay === day }"
variant="secondary"
:data-days="day" :data-days="day"
@click="clickHandler(day)" @click="clickHandler(day)"
> >
{{ buttonContent(day) }} {{ buttonContent(day) }}
</gl-deprecated-button> </gl-button>
</div> </div>
</template> </template>
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