Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b3ac7a2c
Commit
b3ac7a2c
authored
Apr 10, 2019
by
Constance Okoghenun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backported changes from EE for board issue model
parent
9d7ff90d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
app/assets/javascripts/boards/models/issue.js
app/assets/javascripts/boards/models/issue.js
+15
-1
No files found.
app/assets/javascripts/boards/models/issue.js
View file @
b3ac7a2c
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
'
~/vue_shared/models/label
'
;
import
'
~/vue_shared/models/label
'
;
import
{
isEE
}
from
'
~/lib/utils/common_utils
'
;
import
IssueProject
from
'
./project
'
;
import
IssueProject
from
'
./project
'
;
import
boardsStore
from
'
../stores/boards_store
'
;
import
boardsStore
from
'
../stores/boards_store
'
;
...
@@ -28,7 +29,6 @@ class ListIssue {
...
@@ -28,7 +29,6 @@ class ListIssue {
this
.
referencePath
=
obj
.
reference_path
;
this
.
referencePath
=
obj
.
reference_path
;
this
.
path
=
obj
.
real_path
;
this
.
path
=
obj
.
real_path
;
this
.
toggleSubscriptionEndpoint
=
obj
.
toggle_subscription_endpoint
;
this
.
toggleSubscriptionEndpoint
=
obj
.
toggle_subscription_endpoint
;
this
.
milestone_id
=
obj
.
milestone_id
;
this
.
project_id
=
obj
.
project_id
;
this
.
project_id
=
obj
.
project_id
;
this
.
timeEstimate
=
obj
.
time_estimate
;
this
.
timeEstimate
=
obj
.
time_estimate
;
this
.
assignableLabelsEndpoint
=
obj
.
assignable_labels_endpoint
;
this
.
assignableLabelsEndpoint
=
obj
.
assignable_labels_endpoint
;
...
@@ -39,6 +39,7 @@ class ListIssue {
...
@@ -39,6 +39,7 @@ class ListIssue {
if
(
obj
.
milestone
)
{
if
(
obj
.
milestone
)
{
this
.
milestone
=
new
ListMilestone
(
obj
.
milestone
);
this
.
milestone
=
new
ListMilestone
(
obj
.
milestone
);
this
.
milestone_id
=
obj
.
milestone
.
id
;
}
}
obj
.
labels
.
forEach
(
label
=>
{
obj
.
labels
.
forEach
(
label
=>
{
...
@@ -88,6 +89,19 @@ class ListIssue {
...
@@ -88,6 +89,19 @@ class ListIssue {
this
.
assignees
=
[];
this
.
assignees
=
[];
}
}
addMilestone
(
milestone
)
{
const
miletoneId
=
this
.
milestone
?
this
.
milestone
.
id
:
null
;
if
(
isEE
&&
milestone
.
id
!==
miletoneId
)
{
this
.
milestone
=
new
ListMilestone
(
milestone
);
}
}
removeMilestone
(
removeMilestone
)
{
if
(
isEE
&&
removeMilestone
&&
removeMilestone
.
id
===
this
.
milestone
.
id
)
{
this
.
milestone
=
{};
}
}
getLists
()
{
getLists
()
{
return
boardsStore
.
state
.
lists
.
filter
(
list
=>
list
.
findIssue
(
this
.
id
));
return
boardsStore
.
state
.
lists
.
filter
(
list
=>
list
.
findIssue
(
this
.
id
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment