Commit 90613575 authored by Nadia Sotnikova's avatar Nadia Sotnikova Committed by Juan

Migration to gl-button

parent 29bc9e60
<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