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
e7f80ef5
Commit
e7f80ef5
authored
Apr 02, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update template, add itemWidth prop
parent
a25a8c93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
ee/app/assets/javascripts/roadmap/components/epic_item.vue
ee/app/assets/javascripts/roadmap/components/epic_item.vue
+7
-2
spec/javascripts/roadmap/components/epic_item_spec.js
spec/javascripts/roadmap/components/epic_item_spec.js
+3
-1
No files found.
ee/app/assets/javascripts/roadmap/components/epic_item.vue
View file @
e7f80ef5
...
...
@@ -24,12 +24,16 @@
type
:
Number
,
required
:
true
,
},
itemWidth
:
{
type
:
Number
,
required
:
true
,
},
},
};
</
script
>
<
template
>
<
tr
class=
"epics-list-item
"
>
<
div
class=
"epics-list-item clearfix
"
>
<epic-item-details
:epic=
"epic"
:current-group-id=
"currentGroupId"
...
...
@@ -41,6 +45,7 @@
:timeframe-item=
"timeframeItem"
:epic=
"epic"
:shell-width=
"shellWidth"
:item-width=
"itemWidth"
/>
</
tr
>
</
div
>
</
template
>
spec/javascripts/roadmap/components/epic_item_spec.js
View file @
e7f80ef5
...
...
@@ -3,13 +3,14 @@ import Vue from 'vue';
import
epicItemComponent
from
'
ee/roadmap/components/epic_item.vue
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
import
{
mockTimeframe
,
mockEpic
,
mockGroupId
,
mockShellWidth
}
from
'
../mock_data
'
;
import
{
mockTimeframe
,
mockEpic
,
mockGroupId
,
mockShellWidth
,
mockItemWidth
}
from
'
../mock_data
'
;
const
createComponent
=
({
epic
=
mockEpic
,
timeframe
=
mockTimeframe
,
currentGroupId
=
mockGroupId
,
shellWidth
=
mockShellWidth
,
itemWidth
=
mockItemWidth
,
})
=>
{
const
Component
=
Vue
.
extend
(
epicItemComponent
);
...
...
@@ -18,6 +19,7 @@ const createComponent = ({
timeframe
,
currentGroupId
,
shellWidth
,
itemWidth
,
});
};
...
...
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