diff options
author | Constance Okoghenun <constanceokoghenun@gmail.com> | 2019-04-11 15:28:56 +0200 |
---|---|---|
committer | Constance Okoghenun <constanceokoghenun@gmail.com> | 2019-04-11 15:28:56 +0200 |
commit | 1f683902a6446b805e81bd5a1a7adc749f220ea6 (patch) | |
tree | 6792628b4908facaa95259a3f3f57e4cca9e86bc | |
parent | ec7804444343cef3562d88aab2d255287a215430 (diff) | |
download | gitlab-ce-1f683902a6446b805e81bd5a1a7adc749f220ea6.tar.gz |
Backport of EE changes to board milestone model10015-move-ee-differences-for-app-assets-javascripts-boards-models-milestone-js
-rw-r--r-- | app/assets/javascripts/boards/models/milestone.js | 11 |
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; + } } } |