1 | import { BVConfigPlugin } from 'bootstrap-vue';
|
2 | import Vue from 'vue';
|
3 | import { tooltipDelay } from './src/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 | const glTooltipDelay = localStorage.getItem('gl-tooltip-delay');
|
15 |
|
16 | if (glTooltipDelay) {
|
17 | tooltipGlobalConfig.delay = JSON.parse(glTooltipDelay);
|
18 | }
|
19 |
|
20 | const setConfigs = () => {
|
21 | Vue.use(BVConfigPlugin, {
|
22 | BFormText: bFormTextGlobalConfig,
|
23 | BTooltip: tooltipGlobalConfig,
|
24 | });
|
25 | };
|
26 |
|
27 | export default setConfigs;
|