Migrate to GlButton in monitoring dashboard actions

parent 859fdf49
<script> <script>
import { mapState, mapGetters, mapActions } from 'vuex'; import { mapState, mapGetters, mapActions } from 'vuex';
import { import {
GlDeprecatedButton, GlButton,
GlDropdown, GlDropdown,
GlDropdownDivider, GlDropdownDivider,
GlDropdownItem, GlDropdownItem,
...@@ -22,7 +22,7 @@ import { getAddMetricTrackingOptions } from '../utils'; ...@@ -22,7 +22,7 @@ import { getAddMetricTrackingOptions } from '../utils';
export default { export default {
components: { components: {
GlDeprecatedButton, GlButton,
GlDropdown, GlDropdown,
GlDropdownDivider, GlDropdownDivider,
GlDropdownItem, GlDropdownItem,
...@@ -178,10 +178,10 @@ export default { ...@@ -178,10 +178,10 @@ export default {
/> />
</form> </form>
<div slot="modal-footer"> <div slot="modal-footer">
<gl-deprecated-button @click="hideAddMetricModal"> <gl-button @click="hideAddMetricModal">
{{ __('Cancel') }} {{ __('Cancel') }}
</gl-deprecated-button> </gl-button>
<gl-deprecated-button <gl-button
v-track-event="getAddMetricTrackingOptions()" v-track-event="getAddMetricTrackingOptions()"
data-testid="add-metric-modal-submit-button" data-testid="add-metric-modal-submit-button"
:disabled="!customMetricsFormIsValid" :disabled="!customMetricsFormIsValid"
...@@ -189,7 +189,7 @@ export default { ...@@ -189,7 +189,7 @@ export default {
@click="submitCustomMetricsForm" @click="submitCustomMetricsForm"
> >
{{ __('Save changes') }} {{ __('Save changes') }}
</gl-deprecated-button> </gl-button>
</div> </div>
</gl-modal> </gl-modal>
</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