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
514f22c4
Commit
514f22c4
authored
Feb 06, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Assignees vue component
parent
ba624930
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
241 additions
and
5 deletions
+241
-5
app/assets/javascripts/boards/components/board_sidebar.js
app/assets/javascripts/boards/components/board_sidebar.js
+1
-1
app/assets/javascripts/sidebar/components/assignees/assignees.vue
...ts/javascripts/sidebar/components/assignees/assignees.vue
+231
-0
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees.js
...scripts/sidebar/components/assignees/sidebar_assignees.js
+3
-3
changelogs/unreleased/refactor-move-assignees-vue-component.yml
...logs/unreleased/refactor-move-assignees-vue-component.yml
+5
-0
spec/javascripts/sidebar/assignees_spec.js
spec/javascripts/sidebar/assignees_spec.js
+1
-1
No files found.
app/assets/javascripts/boards/components/board_sidebar.js
View file @
514f22c4
...
...
@@ -5,7 +5,7 @@ import Flash from '../../flash';
import
Sidebar
from
'
../../right_sidebar
'
;
import
eventHub
from
'
../../sidebar/event_hub
'
;
import
assigneeTitle
from
'
../../sidebar/components/assignees/assignee_title
'
;
import
assignees
from
'
../../sidebar/components/assignees/assignees
'
;
import
assignees
from
'
../../sidebar/components/assignees/assignees
.vue
'
;
import
DueDateSelectors
from
'
../../due_date_select
'
;
import
'
./sidebar/remove_issue
'
;
import
IssuableContext
from
'
../../issuable_context
'
;
...
...
app/assets/javascripts/sidebar/components/assignees/assignees.
js
→
app/assets/javascripts/sidebar/components/assignees/assignees.
vue
View file @
514f22c4
<
script
>
export
default
{
name
:
'
Assignees
'
,
data
()
{
return
{
defaultRenderCount
:
5
,
defaultMaxCounter
:
99
,
showLess
:
true
,
};
},
props
:
{
rootPath
:
{
type
:
String
,
...
...
@@ -21,6 +15,13 @@ export default {
required
:
true
,
},
},
data
()
{
return
{
defaultRenderCount
:
5
,
defaultMaxCounter
:
99
,
showLess
:
true
,
};
},
computed
:
{
firstUser
()
{
return
this
.
users
[
0
];
...
...
@@ -101,7 +102,10 @@ export default {
return
index
===
0
||
firstTwo
;
},
},
template
:
`
};
</
script
>
<
template
>
<div>
<div
class=
"sidebar-collapsed-icon sidebar-collapsed-user"
...
...
@@ -114,12 +118,14 @@ export default {
v-if=
"hasNoUsers"
aria-label=
"No Assignee"
class=
"fa fa-user"
/>
>
</i>
<button
type=
"button"
class=
"btn-link"
v-for=
"(user, index) in users"
v-if=
"shouldRenderCollapsedAssignee(index)"
:key=
"user.id"
>
<img
width=
"24"
...
...
@@ -184,6 +190,7 @@ export default {
class=
"user-item"
v-for=
"(user, index) in users"
v-if=
"renderAssignee(index)"
:key=
"user.id"
>
<a
class=
"user-link has-tooltip"
...
...
@@ -220,5 +227,5 @@ export default {
</template>
</div>
</div>
`
,
};
</template>
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees.js
View file @
514f22c4
import
Flash
from
'
../../../flash
'
;
import
AssigneeTitle
from
'
./assignee_title
'
;
import
Assignees
from
'
./assignees
'
;
import
Assignees
from
'
./assignees
.vue
'
;
import
Store
from
'
../../stores/sidebar_store
'
;
import
eventHub
from
'
../../event_hub
'
;
...
...
@@ -28,8 +28,8 @@ export default {
},
},
components
:
{
'
assignee-title
'
:
AssigneeTitle
,
assignees
:
Assignees
,
AssigneeTitle
,
Assignees
,
},
methods
:
{
assignSelf
()
{
...
...
changelogs/unreleased/refactor-move-assignees-vue-component.yml
0 → 100644
View file @
514f22c4
---
title
:
Move Assignees vue component
merge_request
:
16952
author
:
George Tsiolis
type
:
performance
spec/javascripts/sidebar/assignees_spec.js
View file @
514f22c4
import
Vue
from
'
vue
'
;
import
Assignee
from
'
~/sidebar/components/assignees/assignees
'
;
import
Assignee
from
'
~/sidebar/components/assignees/assignees
.vue
'
;
import
UsersMock
from
'
./mock_data
'
;
import
UsersMockHelper
from
'
../helpers/user_mock_data_helper
'
;
...
...
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