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 () => { ...@@ -178,7 +178,6 @@ export default () => {
}); });
} }
}, },
<<<<<<< HEAD
updateWeight(newWeight, id) { updateWeight(newWeight, id) {
const { issue } = Store.detail; const { issue } = Store.detail;
if (issue.id === id && issue.sidebarInfoEndpoint) { if (issue.id === id && issue.sidebarInfoEndpoint) {
...@@ -197,8 +196,6 @@ export default () => { ...@@ -197,8 +196,6 @@ export default () => {
}); });
} }
}, },
=======
>>>>>>> upstream/master
}, },
}); });
...@@ -213,7 +210,6 @@ export default () => { ...@@ -213,7 +210,6 @@ export default () => {
}, },
}); });
<<<<<<< HEAD
const configEl = document.querySelector('.js-board-config'); const configEl = document.querySelector('.js-board-config');
if (configEl) { if (configEl) {
...@@ -287,36 +283,6 @@ export default () => { ...@@ -287,36 +283,6 @@ export default () => {
return ''; 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: { watch: {
disabled() { disabled() {
this.updateTooltip(); this.updateTooltip();
...@@ -342,7 +308,6 @@ export default () => { ...@@ -342,7 +308,6 @@ export default () => {
this.toggleModal(true); this.toggleModal(true);
} }
}, },
<<<<<<< HEAD
}, },
template: ` template: `
<div class="board-extra-actions"> <div class="board-extra-actions">
...@@ -411,25 +376,4 @@ export default () => { ...@@ -411,25 +376,4 @@ export default () => {
'boards-selector': gl.issueBoards.BoardsSelector, '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