Commit 1ee37122 authored by George Tsiolis's avatar George Tsiolis

Migrate custom metric form buttons

parent f407d692
<script> <script>
import { GlDeprecatedButton } from '@gitlab/ui'; import { GlButton } from '@gitlab/ui';
import { __, s__ } from '~/locale'; import { __, s__ } from '~/locale';
import csrf from '~/lib/utils/csrf'; import csrf from '~/lib/utils/csrf';
import CustomMetricsFormFields from './custom_metrics_form_fields.vue'; import CustomMetricsFormFields from './custom_metrics_form_fields.vue';
...@@ -10,7 +10,7 @@ export default { ...@@ -10,7 +10,7 @@ export default {
components: { components: {
CustomMetricsFormFields, CustomMetricsFormFields,
DeleteCustomMetricModal, DeleteCustomMetricModal,
GlDeprecatedButton, GlButton,
}, },
props: { props: {
customMetricsPath: { customMetricsPath: {
...@@ -76,15 +76,10 @@ export default { ...@@ -76,15 +76,10 @@ export default {
@formValidation="formValidation" @formValidation="formValidation"
/> />
<div class="form-actions"> <div class="form-actions">
<gl-deprecated-button variant="success" :disabled="!formIsValid" @click="submit"> <gl-button variant="success" category="primary" :disabled="!formIsValid" @click="submit">
{{ saveButtonText }} {{ saveButtonText }}
</gl-deprecated-button> </gl-button>
<gl-deprecated-button <gl-button class="float-right" :href="editProjectServicePath">{{ __('Cancel') }}</gl-button>
variant="secondary"
class="float-right"
:href="editProjectServicePath"
>{{ __('Cancel') }}</gl-deprecated-button
>
<delete-custom-metric-modal <delete-custom-metric-modal
v-if="metricPersisted" v-if="metricPersisted"
:delete-metric-url="customMetricsPath" :delete-metric-url="customMetricsPath"
......
---
title: Migrate custom metric form buttons
merge_request: 38896
author: George Tsiolis
type: changed
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