blob: 29218eb53e05976a6d1baf0bec8d64b6de5808fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import Vue from 'vue';
import { parseBoolean } from '~/lib/utils/common_utils';
import HeaderMetadata from './components/header_metadata.vue';
export function mountHeaderMetadata(store) {
const el = document.querySelector('.js-header-metadata-root');
if (!el) {
return null;
}
return new Vue({
el,
name: 'HeaderMetadataRoot',
store,
provide: { hidden: parseBoolean(el.dataset.hidden) },
render: (createElement) => createElement(HeaderMetadata),
});
}
|