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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-22 21:09:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-22 21:09:24 +0300
commit9a643ab892cfd7897fb7695bc158ce17ada81b1a (patch)
treefdd8b1bba4046b8829f97eecc56079b742fcb441 /app/assets
parent06d4ce7ee0c0f9cf84a6799d97f64dd710d6e9f6 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/vue_shared/components/help_popover.vue13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/assets/javascripts/vue_shared/components/help_popover.vue b/app/assets/javascripts/vue_shared/components/help_popover.vue
index 051c65bae70..ff85d9afe43 100644
--- a/app/assets/javascripts/vue_shared/components/help_popover.vue
+++ b/app/assets/javascripts/vue_shared/components/help_popover.vue
@@ -1,5 +1,5 @@
<script>
-import { GlButton, GlPopover } from '@gitlab/ui';
+import { GlButton, GlPopover, GlSafeHtmlDirective } from '@gitlab/ui';
/**
* Render a button with a question mark icon
@@ -11,6 +11,9 @@ export default {
GlButton,
GlPopover,
},
+ directives: {
+ SafeHtml: GlSafeHtmlDirective,
+ },
props: {
options: {
type: Object,
@@ -24,13 +27,11 @@ export default {
<span>
<gl-button ref="popoverTrigger" variant="link" icon="question" tabindex="0" />
<gl-popover triggers="hover focus" :target="() => $refs.popoverTrigger.$el" v-bind="options">
- <template #title>
- <!-- eslint-disable-next-line vue/no-v-html -->
- <span v-html="options.title"></span>
+ <template v-if="options.title" #title>
+ <span v-safe-html="options.title"></span>
</template>
<template #default>
- <!-- eslint-disable-next-line vue/no-v-html -->
- <div v-html="options.content"></div>
+ <div v-safe-html="options.content"></div>
</template>
</gl-popover>
</span>