Commit d2fd6925 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'Remove-addMilestone-logic-from-issue-models' into 'master'

Remove addMilestone logic from issue model

See merge request gitlab-org/gitlab!32235
parents 79f69682 c6205307
......@@ -64,10 +64,7 @@ class ListIssue {
}
addMilestone(milestone) {
const miletoneId = this.milestone ? this.milestone.id : null;
if (IS_EE && milestone.id !== miletoneId) {
this.milestone = new ListMilestone(milestone);
}
boardsStore.addIssueMilestone(this, milestone);
}
removeMilestone(removeMilestone) {
......
......@@ -794,6 +794,13 @@ const boardsStore = {
issue.assignees = [];
},
addIssueMilestone(issue, milestone) {
const miletoneId = issue.milestone ? issue.milestone.id : null;
if (IS_EE && milestone.id !== miletoneId) {
issue.milestone = new ListMilestone(milestone);
}
},
refreshIssueData(issue, obj) {
issue.id = obj.id;
issue.iid = obj.iid;
......
---
title: Remove addMilestone logic from issue model
merge_request: 32235
author: nuwe1
type: other
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