debian-mirror-gitlab/app/assets/javascripts/boards/toggle_focus.js

18 lines
374 B
JavaScript
Raw Normal View History

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',
render(h) {
return h(ToggleFocus, {
props: {
issueBoardsContentSelector,
},
});
2021-01-03 14:25:43 +05:30
},
2020-05-24 23:13:21 +05:30
});
};