Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/monitoring')
-rw-r--r--app/assets/javascripts/monitoring/components/alert_widget_form.vue19
-rw-r--r--app/assets/javascripts/monitoring/components/group_empty_state.vue8
2 files changed, 13 insertions, 14 deletions
diff --git a/app/assets/javascripts/monitoring/components/alert_widget_form.vue b/app/assets/javascripts/monitoring/components/alert_widget_form.vue
index 132df9c9516..6f29b34141d 100644
--- a/app/assets/javascripts/monitoring/components/alert_widget_form.vue
+++ b/app/assets/javascripts/monitoring/components/alert_widget_form.vue
@@ -3,7 +3,7 @@ import { isEmpty, findKey } from 'lodash';
import Vue from 'vue';
import {
GlLink,
- GlDeprecatedButton,
+ GlButton,
GlButtonGroup,
GlFormGroup,
GlFormInput,
@@ -36,7 +36,7 @@ const SUBMIT_BUTTON_CLASS = {
export default {
components: {
- GlDeprecatedButton,
+ GlButton,
GlButtonGroup,
GlFormGroup,
GlFormInput,
@@ -267,30 +267,27 @@ export default {
</gl-dropdown>
</gl-form-group>
<gl-button-group class="mb-3" :label="s__('PrometheusAlerts|Operator')">
- <gl-deprecated-button
+ <gl-button
:class="{ active: operator === operators.greaterThan }"
:disabled="formDisabled"
- type="button"
@click="operator = operators.greaterThan"
>
{{ operators.greaterThan }}
- </gl-deprecated-button>
- <gl-deprecated-button
+ </gl-button>
+ <gl-button
:class="{ active: operator === operators.equalTo }"
:disabled="formDisabled"
- type="button"
@click="operator = operators.equalTo"
>
{{ operators.equalTo }}
- </gl-deprecated-button>
- <gl-deprecated-button
+ </gl-button>
+ <gl-button
:class="{ active: operator === operators.lessThan }"
:disabled="formDisabled"
- type="button"
@click="operator = operators.lessThan"
>
{{ operators.lessThan }}
- </gl-deprecated-button>
+ </gl-button>
</gl-button-group>
<gl-form-group :label="s__('PrometheusAlerts|Threshold')" label-for="alerts-threshold">
<gl-form-input
diff --git a/app/assets/javascripts/monitoring/components/group_empty_state.vue b/app/assets/javascripts/monitoring/components/group_empty_state.vue
index 499823fae3f..0365fc66331 100644
--- a/app/assets/javascripts/monitoring/components/group_empty_state.vue
+++ b/app/assets/javascripts/monitoring/components/group_empty_state.vue
@@ -1,6 +1,5 @@
<script>
-/* eslint-disable vue/no-v-html */
-import { GlEmptyState } from '@gitlab/ui';
+import { GlEmptyState, GlSafeHtmlDirective as SafeHtml } from '@gitlab/ui';
import { __, sprintf } from '~/locale';
import { metricStates } from '../constants';
@@ -8,6 +7,9 @@ export default {
components: {
GlEmptyState,
},
+ directives: {
+ SafeHtml,
+ },
props: {
documentationPath: {
type: String,
@@ -100,7 +102,7 @@ export default {
:compact="true"
>
<template v-if="currentState.slottedDescription" #description>
- <div v-html="currentState.slottedDescription"></div>
+ <div v-safe-html="currentState.slottedDescription"></div>
</template>
</gl-empty-state>
</template>