2020-05-24 23:13:21 +05:30
|
|
|
import Vue from 'vue';
|
2021-03-11 19:13:27 +05:30
|
|
|
import ToggleFocus from './components/toggle_focus.vue';
|
2020-05-24 23:13:21 +05:30
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
export default () => {
|
|
|
|
const issueBoardsContentSelector = '.content-wrapper > .js-focus-mode-board';
|
2020-05-24 23:13:21 +05:30
|
|
|
|
|
|
|
return new Vue({
|
2021-03-11 19:13:27 +05:30
|
|
|
el: '#js-toggle-focus-btn',
|
2022-04-04 11:22:00 +05:30
|
|
|
name: 'ToggleFocusRoot',
|
2021-03-11 19:13:27 +05:30
|
|
|
render(h) {
|
|
|
|
return h(ToggleFocus, {
|
|
|
|
props: {
|
|
|
|
issueBoardsContentSelector,
|
|
|
|
},
|
|
|
|
});
|
2021-01-03 14:25:43 +05:30
|
|
|
},
|
2020-05-24 23:13:21 +05:30
|
|
|
});
|
|
|
|
};
|