2018-03-17 18:26:18 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import settingsPanel from './components/settings_panel.vue';
|
|
|
|
|
|
|
|
export default function initProjectPermissionsSettings() {
|
|
|
|
const mountPoint = document.querySelector('.js-project-permissions-form');
|
|
|
|
const componentPropsEl = document.querySelector('.js-project-permissions-form-data');
|
|
|
|
const componentProps = JSON.parse(componentPropsEl.innerHTML);
|
|
|
|
|
|
|
|
return new Vue({
|
|
|
|
el: mountPoint,
|
2021-03-08 18:12:59 +05:30
|
|
|
render: (createElement) => createElement(settingsPanel, { props: { ...componentProps } }),
|
2018-03-17 18:26:18 +05:30
|
|
|
});
|
|
|
|
}
|