Commit 36fc17c3 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch 'ss/add-el-check-swimlanes' into 'master'

Add el check for epic swimlanes

See merge request gitlab-org/gitlab!39767
parents ad08a2a0 bd0ab1f1
...@@ -2,9 +2,15 @@ import Vue from 'vue'; ...@@ -2,9 +2,15 @@ import Vue from 'vue';
import ToggleEpicsSwimlanes from './components/toggle_epics_swimlanes.vue'; import ToggleEpicsSwimlanes from './components/toggle_epics_swimlanes.vue';
import store from '~/boards/stores'; import store from '~/boards/stores';
export default () => export default () => {
new Vue({ const el = document.getElementById('js-board-epics-swimlanes-toggle');
el: document.getElementById('js-board-epics-swimlanes-toggle'),
if (!el) {
return null;
}
return new Vue({
el,
components: { components: {
ToggleEpicsSwimlanes, ToggleEpicsSwimlanes,
}, },
...@@ -13,3 +19,4 @@ export default () => ...@@ -13,3 +19,4 @@ export default () =>
return createElement(ToggleEpicsSwimlanes); return createElement(ToggleEpicsSwimlanes);
}, },
}); });
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment