Commit 45ecf8f1 authored by Juan J. Ramirez's avatar Juan J. Ramirez Committed by Enrique Alcántara

Button migration vulnerability charts

parent b4665a80
---
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