Moves help_popover component to a common location

This commit is contained in:
Filipa Lacerda 2018-08-03 16:14:05 +01:00
parent 3a5885c4cc
commit 4f4290ffed
No known key found for this signature in database
GPG Key ID: 9CA3FDE4D1E2F1C8
4 changed files with 14 additions and 4 deletions

View File

@ -4,15 +4,20 @@ import Icon from '~/vue_shared/components/icon.vue';
import { inserted } from '~/feature_highlight/feature_highlight_helper';
import { mouseenter, debouncedMouseleave, togglePopover } from '~/shared/popover';
/**
* Render a button with a question mark icon
* On hover shows a popover. The popover will be dismissed on mouseleave
*/
export default {
name: 'ReportsHelpPopover',
name: 'HelpPopover',
components: {
Icon,
},
props: {
options: {
type: Object,
required: true,
required: false,
default: () => ({}),
},
},
mounted() {

View File

@ -2,7 +2,7 @@
import { __ } from '~/locale';
import StatusIcon from '~/vue_merge_request_widget/components/mr_widget_status_icon.vue';
import IssuesList from './issues_list.vue';
import Popover from './help_popover.vue';
import Popover from '../help_popover.vue';
const LOADING = 'LOADING';
const ERROR = 'ERROR';

View File

@ -1,7 +1,7 @@
<script>
import CiIcon from '~/vue_shared/components/ci_icon.vue';
import LoadingIcon from '~/vue_shared/components/loading_icon.vue';
import Popover from './help_popover.vue';
import Popover from '../help_popover.vue';
/**
* Renders the summary row for each report

View File

@ -0,0 +1,5 @@
---
title: Moves help_popover component to a common location
merge_request:
author:
type: other