Commit c6205307 authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Remove addMilestone logic from issue model

parent ac9e467e
......@@ -66,10 +66,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) {
......
......@@ -769,6 +769,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