1 | import { BVConfigPlugin } from 'bootstrap-vue';
|
2 | import Vue from 'vue';
|
3 | import { tooltipDelay } from './utils/constants';
|
4 |
|
5 | const bFormTextGlobalConfig = {
|
6 | textVariant: 'gl-muted',
|
7 | };
|
8 |
|
9 | const tooltipGlobalConfig = {
|
10 | customClass: 'gl-tooltip',
|
11 | delay: tooltipDelay,
|
12 | };
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | try {
|
23 | const glTooltipDelay = localStorage.getItem('gl-tooltip-delay');
|
24 |
|
25 | if (glTooltipDelay) {
|
26 | tooltipGlobalConfig.delay = JSON.parse(glTooltipDelay);
|
27 | }
|
28 | } catch (e) {
|
29 |
|
30 | }
|
31 |
|
32 | const setConfigs = () => {
|
33 | Vue.use(BVConfigPlugin, {
|
34 | BFormText: bFormTextGlobalConfig,
|
35 | BTooltip: tooltipGlobalConfig,
|
36 | });
|
37 | };
|
38 |
|
39 | export default setConfigs;
|