Commit 3f6406e0 authored by Scott Stern's avatar Scott Stern Committed by Natalia Tepluhina

Update maxIssueCount in boards store

parent d1a519b6
...@@ -81,14 +81,10 @@ export default { ...@@ -81,14 +81,10 @@ export default {
this.updateListWipLimit({ maxIssueCount: this.currentWipLimit, id: this.activeListId }) this.updateListWipLimit({ maxIssueCount: this.currentWipLimit, id: this.activeListId })
.then(({ config }) => { .then(({ config }) => {
/* boardsStoreEE.setMaxIssueCountOnList(
Move to BoardsStore bc we are consolidating all List this.activeListId,
Model code and then moving it from BoardsStore to Vuex. JSON.parse(config.data).list.max_issue_count,
*/ );
boardsStoreEE.store.findList('id', this.activeListId).maxIssueCount = JSON.parse(
config.data,
).list.max_issue_count;
this.resetStateAfterUpdate(); this.resetStateAfterUpdate();
}) })
.catch(() => { .catch(() => {
......
...@@ -172,6 +172,10 @@ class BoardsStoreEE { ...@@ -172,6 +172,10 @@ class BoardsStoreEE {
return parseBoolean(Cookies.get('promotion_issue_board_hidden')); return parseBoolean(Cookies.get('promotion_issue_board_hidden'));
} }
setMaxIssueCountOnList(id, maxIssueCount) {
this.store.findList('id', id).maxIssueCount = maxIssueCount;
}
updateWeight(newWeight, id) { updateWeight(newWeight, id) {
const { issue } = this.store.detail; const { issue } = this.store.detail;
if (issue.id === id && issue.sidebarInfoEndpoint) { if (issue.id === id && issue.sidebarInfoEndpoint) {
......
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