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> <script>
import { GlModal, GlModalDirective, GlDeprecatedButton } from '@gitlab/ui'; import { GlModal, GlModalDirective, GlButton } from '@gitlab/ui';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
export default { export default {
components: { components: {
GlModal, GlModal,
GlDeprecatedButton, GlButton,
}, },
directives: { directives: {
'gl-modal': GlModalDirective, 'gl-modal': GlModalDirective,
...@@ -33,9 +33,9 @@ export default { ...@@ -33,9 +33,9 @@ export default {
</script> </script>
<template> <template>
<div class="d-inline-block float-right mr-3"> <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') }} {{ __('Delete') }}
</gl-deprecated-button> </gl-button>
<gl-modal <gl-modal
:title="s__('Metrics|Delete metric?')" :title="s__('Metrics|Delete metric?')"
:ok-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