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
b3152bf2
Commit
b3152bf2
authored
Feb 27, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move AssigneeTitle vue component
parent
0dea3dc8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
3 deletions
+72
-3
app/assets/javascripts/boards/components/board_sidebar.js
app/assets/javascripts/boards/components/board_sidebar.js
+1
-1
app/assets/javascripts/sidebar/components/assignees/assignee_title.vue
...vascripts/sidebar/components/assignees/assignee_title.vue
+64
-0
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees.vue
...cripts/sidebar/components/assignees/sidebar_assignees.vue
+1
-1
changelogs/unreleased/refactor-move-assignee-title-vue-component.yml
...unreleased/refactor-move-assignee-title-vue-component.yml
+5
-0
spec/javascripts/sidebar/assignee_title_spec.js
spec/javascripts/sidebar/assignee_title_spec.js
+1
-1
No files found.
app/assets/javascripts/boards/components/board_sidebar.js
View file @
b3152bf2
...
...
@@ -5,7 +5,7 @@ import Flash from '../../flash';
import
{
__
}
from
'
../../locale
'
;
import
Sidebar
from
'
../../right_sidebar
'
;
import
eventHub
from
'
../../sidebar/event_hub
'
;
import
assigneeTitle
from
'
../../sidebar/components/assignees/assignee_title
'
;
import
assigneeTitle
from
'
../../sidebar/components/assignees/assignee_title
.vue
'
;
import
assignees
from
'
../../sidebar/components/assignees/assignees.vue
'
;
import
DueDateSelectors
from
'
../../due_date_select
'
;
import
'
./sidebar/remove_issue
'
;
...
...
app/assets/javascripts/sidebar/components/assignees/assignee_title.
js
→
app/assets/javascripts/sidebar/components/assignees/assignee_title.
vue
View file @
b3152bf2
<
script
>
export
default
{
name
:
'
AssigneeTitle
'
,
props
:
{
...
...
@@ -26,34 +27,38 @@ export default {
return
assignees
>
1
?
`
${
assignees
}
Assignees`
:
'
Assignee
'
;
},
},
template
:
`
<div class="title hide-collapsed">
{{assigneeTitle}}
};
</
script
>
<
template
>
<div
class=
"title hide-collapsed"
>
{{
assigneeTitle
}}
<i
v-if=
"loading"
aria-hidden=
"true"
class=
"fa fa-spinner fa-spin block-loading"
>
</i>
<a
v-if=
"editable"
class=
"js-sidebar-dropdown-toggle edit-link pull-right"
href=
"#"
>
{{
__
(
'
Edit
'
)
}}
</a>
<a
v-if=
"showToggle"
aria-label=
"Toggle sidebar"
class=
"gutter-toggle pull-right js-sidebar-toggle"
href=
"#"
role=
"button"
>
<i
v-if="loading"
aria-hidden=
"true"
class="fa fa-spinner fa-spin block-loading"
/>
<a
v-if="editable"
class="js-sidebar-dropdown-toggle edit-link pull-right"
href="#"
>
{{ __('Edit') }}
</a>
<a
v-if="showToggle"
aria-label="Toggle sidebar"
class="gutter-toggle pull-right js-sidebar-toggle"
href="#"
role="button"
data-hidden=
"true"
class=
"fa fa-angle-double-right"
>
<i
aria-hidden="true"
data-hidden="true"
class="fa fa-angle-double-right"
/>
</a>
</div>
`
,
};
</i>
</a>
</div>
</
template
>
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees.vue
View file @
b3152bf2
<
script
>
import
Flash
from
'
../../../flash
'
;
import
AssigneeTitle
from
'
./assignee_title
'
;
import
AssigneeTitle
from
'
./assignee_title
.vue
'
;
import
Assignees
from
'
./assignees.vue
'
;
import
Store
from
'
../../stores/sidebar_store
'
;
import
eventHub
from
'
../../event_hub
'
;
...
...
changelogs/unreleased/refactor-move-assignee-title-vue-component.yml
0 → 100644
View file @
b3152bf2
---
title
:
Move AssigneeTitle vue component
merge_request
:
17397
author
:
George Tsiolis
type
:
performance
spec/javascripts/sidebar/assignee_title_spec.js
View file @
b3152bf2
import
Vue
from
'
vue
'
;
import
AssigneeTitle
from
'
~/sidebar/components/assignees/assignee_title
'
;
import
AssigneeTitle
from
'
~/sidebar/components/assignees/assignee_title
.vue
'
;
describe
(
'
AssigneeTitle component
'
,
()
=>
{
let
component
;
...
...
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