2020-05-13 20:07:47 -04:00
|
|
|
import Vue from 'vue';
|
2021-01-27 10:09:15 -05:00
|
|
|
import ToggleFocus from './components/toggle_focus.vue';
|
2020-05-13 20:07:47 -04:00
|
|
|
|
2021-01-27 10:09:15 -05:00
|
|
|
export default () => {
|
|
|
|
const issueBoardsContentSelector = '.content-wrapper > .js-focus-mode-board';
|
2020-05-13 20:07:47 -04:00
|
|
|
|
|
|
|
return new Vue({
|
2021-01-27 10:09:15 -05:00
|
|
|
el: '#js-toggle-focus-btn',
|
|
|
|
render(h) {
|
|
|
|
return h(ToggleFocus, {
|
|
|
|
props: {
|
|
|
|
issueBoardsContentSelector,
|
|
|
|
},
|
|
|
|
});
|
2020-10-05 05:08:17 -04:00
|
|
|
},
|
2020-05-13 20:07:47 -04:00
|
|
|
});
|
|
|
|
};
|