Commit 454214ab authored by Phil Hughes's avatar Phil Hughes

resolve conflicts in `app/assets/javascripts/boards/index.js`

parent f7d7ff3a
......@@ -178,7 +178,6 @@ export default () => {
});
}
},
<<<<<<< HEAD
updateWeight(newWeight, id) {
const { issue } = Store.detail;
if (issue.id === id && issue.sidebarInfoEndpoint) {
......@@ -197,8 +196,6 @@ export default () => {
});
}
},
=======
>>>>>>> upstream/master
},
});
......@@ -213,7 +210,6 @@ export default () => {
},
});
<<<<<<< HEAD
const configEl = document.querySelector('.js-board-config');
if (configEl) {
......@@ -287,36 +283,6 @@ export default () => {
return '';
},
},
=======
const issueBoardsModal = document.getElementById('js-add-issues-btn');
if (issueBoardsModal) {
gl.IssueBoardsModalAddBtn = new Vue({
el: issueBoardsModal,
mixins: [modalMixin],
data() {
return {
modal: ModalStore.store,
store: Store.state,
canAdminList: this.$options.el.hasAttribute('data-can-admin-list'),
};
},
computed: {
disabled() {
if (!this.store) {
return true;
}
return !this.store.lists.filter(list => !list.preset).length;
},
tooltipTitle() {
if (this.disabled) {
return 'Please add a list to your board first';
}
return '';
},
},
>>>>>>> upstream/master
watch: {
disabled() {
this.updateTooltip();
......@@ -342,7 +308,6 @@ export default () => {
this.toggleModal(true);
}
},
<<<<<<< HEAD
},
template: `
<div class="board-extra-actions">
......@@ -411,25 +376,4 @@ export default () => {
'boards-selector': gl.issueBoards.BoardsSelector,
},
});
=======
},
template: `
<div class="board-extra-actions">
<button
class="btn btn-create prepend-left-10"
type="button"
data-placement="bottom"
ref="addIssuesButton"
:class="{ 'disabled': disabled }"
:title="tooltipTitle"
:aria-disabled="disabled"
v-if="canAdminList"
@click="openModal">
Add issues
</button>
</div>
`,
});
}
>>>>>>> upstream/master
};
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