Commit 74b8fc94 authored by Illya Klymov's avatar Illya Klymov

Merge branch '219755-migrate-to-gl-button-delete-custom-metric-modal' into 'master'

Migrate gl-deprecated-button to gl-button

Closes #219755

See merge request gitlab-org/gitlab!42215
parents 27318298 90613575
<script>
import { GlModal, GlModalDirective, GlDeprecatedButton } from '@gitlab/ui';
import { GlModal, GlModalDirective, GlButton } from '@gitlab/ui';
import { s__ } from '~/locale';
export default {
components: {
GlModal,
GlDeprecatedButton,
GlButton,
},
directives: {
'gl-modal': GlModalDirective,
......@@ -33,9 +33,9 @@ export default {
</script>
<template>
<div class="d-inline-block float-right mr-3">
<gl-deprecated-button v-gl-modal="$options.modalId" variant="danger">
<gl-button v-gl-modal="$options.modalId" variant="danger" category="primary">
{{ __('Delete') }}
</gl-deprecated-button>
</gl-button>
<gl-modal
:title="s__('Metrics|Delete metric?')"
:ok-title="s__('Metrics|Delete metric')"
......
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