Commit e7f80ef5 authored by Kushal Pandya's avatar Kushal Pandya

Update template, add itemWidth prop

parent a25a8c93
...@@ -24,12 +24,16 @@ ...@@ -24,12 +24,16 @@
type: Number, type: Number,
required: true, required: true,
}, },
itemWidth: {
type: Number,
required: true,
},
}, },
}; };
</script> </script>
<template> <template>
<tr class="epics-list-item"> <div class="epics-list-item clearfix">
<epic-item-details <epic-item-details
:epic="epic" :epic="epic"
:current-group-id="currentGroupId" :current-group-id="currentGroupId"
...@@ -41,6 +45,7 @@ ...@@ -41,6 +45,7 @@
:timeframe-item="timeframeItem" :timeframe-item="timeframeItem"
:epic="epic" :epic="epic"
:shell-width="shellWidth" :shell-width="shellWidth"
:item-width="itemWidth"
/> />
</tr> </div>
</template> </template>
...@@ -3,13 +3,14 @@ import Vue from 'vue'; ...@@ -3,13 +3,14 @@ import Vue from 'vue';
import epicItemComponent from 'ee/roadmap/components/epic_item.vue'; import epicItemComponent from 'ee/roadmap/components/epic_item.vue';
import mountComponent from 'spec/helpers/vue_mount_component_helper'; 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 = ({ const createComponent = ({
epic = mockEpic, epic = mockEpic,
timeframe = mockTimeframe, timeframe = mockTimeframe,
currentGroupId = mockGroupId, currentGroupId = mockGroupId,
shellWidth = mockShellWidth, shellWidth = mockShellWidth,
itemWidth = mockItemWidth,
}) => { }) => {
const Component = Vue.extend(epicItemComponent); const Component = Vue.extend(epicItemComponent);
...@@ -18,6 +19,7 @@ const createComponent = ({ ...@@ -18,6 +19,7 @@ const createComponent = ({
timeframe, timeframe,
currentGroupId, currentGroupId,
shellWidth, shellWidth,
itemWidth,
}); });
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment