Commit 0d1472bf authored by Simon Knox's avatar Simon Knox

fix spec failures - don't create board config if element doesn't exist

parent 4df7e5e3
......@@ -191,8 +191,11 @@ $(() => {
},
});
const configEl = document.querySelector('.js-board-config');
if (configEl) {
gl.boardConfigToggle = new Vue({
el: document.querySelector('.js-board-config'),
el: configEl,
data() {
return {
canAdminList: convertPermissionToBoolean(
......@@ -220,6 +223,7 @@ $(() => {
</div>
`,
});
}
gl.IssueBoardsModalAddBtn = new Vue({
mixins: [gl.issueBoards.ModalMixins],
......
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