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