summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstance Okoghenun <constanceokoghenun@gmail.com>2019-04-11 15:28:56 +0200
committerConstance Okoghenun <constanceokoghenun@gmail.com>2019-04-11 15:28:56 +0200
commit1f683902a6446b805e81bd5a1a7adc749f220ea6 (patch)
tree6792628b4908facaa95259a3f3f57e4cca9e86bc
parentec7804444343cef3562d88aab2d255287a215430 (diff)
downloadgitlab-ce-1f683902a6446b805e81bd5a1a7adc749f220ea6.tar.gz
-rw-r--r--app/assets/javascripts/boards/models/milestone.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/models/milestone.js b/app/assets/javascripts/boards/models/milestone.js
index 17d15278a74..6f81d6bc6f8 100644
--- a/app/assets/javascripts/boards/models/milestone.js
+++ b/app/assets/javascripts/boards/models/milestone.js
@@ -1,7 +1,16 @@
-class ListMilestone {
+import { isEE } from '~/lib/utils/common_utils';
+
+export default class ListMilestone {
constructor(obj) {
this.id = obj.id;
this.title = obj.title;
+
+ if (isEE) {
+ this.path = obj.path;
+ this.state = obj.state;
+ this.webUrl = obj.web_url || obj.webUrl;
+ this.description = obj.description;
+ }
}
}