Commit d5635118 authored by Simon Knox's avatar Simon Knox

remove some unused code

parent 60ca1167
...@@ -13,7 +13,7 @@ window.gl.issueBoards = window.gl.issueBoards || {}; ...@@ -13,7 +13,7 @@ window.gl.issueBoards = window.gl.issueBoards || {};
const Store = gl.issueBoards.BoardsStore; const Store = gl.issueBoards.BoardsStore;
export default Vue.extend({ export default {
props: { props: {
boardPath: { boardPath: {
type: String, type: String,
...@@ -159,10 +159,6 @@ export default Vue.extend({ ...@@ -159,10 +159,6 @@ export default Vue.extend({
// Clear the form when we open the "New board" modal // Clear the form when we open the "New board" modal
Store.updateBoardConfig(); Store.updateBoardConfig();
} }
if (!this.board.labels) {
this.board.labels = [];
}
}, },
}, },
mounted() { mounted() {
...@@ -172,7 +168,7 @@ export default Vue.extend({ ...@@ -172,7 +168,7 @@ export default Vue.extend({
this.$refs.name.focus(); this.$refs.name.focus();
} }
}, },
}); };
</script> </script>
<template> <template>
......
...@@ -11,7 +11,7 @@ import BoardForm from './board_form.vue'; ...@@ -11,7 +11,7 @@ import BoardForm from './board_form.vue';
gl.issueBoards.BoardsSelector = Vue.extend({ gl.issueBoards.BoardsSelector = Vue.extend({
components: { components: {
'board-form': BoardForm, BoardForm,
}, },
props: { props: {
currentBoard: { currentBoard: {
......
...@@ -69,10 +69,8 @@ export default { ...@@ -69,10 +69,8 @@ export default {
}, },
methods: { methods: {
initSelect() { initSelect() {
this.$nextTick(() => { new UsersSelect(null, this.$refs.dropdown, {
new UsersSelect(null, this.$refs.dropdown, { handleClick: this.selectUser,
handleClick: this.selectUser,
});
}); });
}, },
selectUser(user, isMarking) { selectUser(user, isMarking) {
......
...@@ -46,7 +46,9 @@ gl.issueBoards.BoardsStore = { ...@@ -46,7 +46,9 @@ gl.issueBoards.BoardsStore = {
}; };
}, },
createNewListDropdownData() { createNewListDropdownData() {
this.state.currentBoard = {}; this.state.currentBoard = {
labels: [],
};
this.state.currentPage = ''; this.state.currentPage = '';
this.state.reload = false; this.state.reload = false;
}, },
......
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