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
bc81c01b
Commit
bc81c01b
authored
Mar 31, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] update service to match backend
parent
1bba291d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
app/assets/javascripts/vue_sidebar_assignees/stores/sidebar_assignees_store.js
...s/vue_sidebar_assignees/stores/sidebar_assignees_store.js
+12
-6
No files found.
app/assets/javascripts/vue_sidebar_assignees/stores/sidebar_assignees_store.js
View file @
bc81c01b
...
...
@@ -27,7 +27,9 @@ export default class SidebarAssigneesStore {
}
addCurrentUser
()
{
this
.
addUser
(
this
.
currentUserId
);
this
.
addUser
({
id
:
this
.
currentUserId
,
});
this
.
saveUsers
();
}
...
...
@@ -45,14 +47,18 @@ export default class SidebarAssigneesStore {
this
.
service
.
update
(
payload
)
.
then
((
response
)
=>
{
const
data
=
response
.
data
;
const
assignee
=
data
.
assignee
;
const
assignee
s
=
data
.
assignees
;
this
.
users
=
[];
// TODO: Update this to match backend response
if
(
assignee
)
{
this
.
addUser
(
assignee
.
id
,
assignee
.
name
,
assignee
.
username
,
assignee
.
avatar_url
,
true
);
}
assignees
.
forEach
(
function
(
a
)
{
this
.
addUser
({
id
:
a
.
id
,
name
:
a
.
name
,
username
:
a
.
username
,
avatarUrl
:
a
.
avatar_url
,
},
true
)
}.
bind
(
this
));
this
.
saved
=
true
;
this
.
loading
=
false
;
...
...
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