Commit f70ffde0 authored by Kushal Pandya's avatar Kushal Pandya

Add SidebarContext, props for LabelsSelect component

parent e9fe4d33
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
import issuableApp from '~/issue_show/components/app.vue'; import issuableApp from '~/issue_show/components/app.vue';
import relatedIssuesRoot from 'ee/related_issues/components/related_issues_root.vue'; import relatedIssuesRoot from 'ee/related_issues/components/related_issues_root.vue';
import issuableAppEventHub from '~/issue_show/event_hub'; import issuableAppEventHub from '~/issue_show/event_hub';
import epicHeader from './epic_header.vue';
import epicSidebar from '../../sidebar/components/sidebar_app.vue'; import epicSidebar from '../../sidebar/components/sidebar_app.vue';
import SidebarContext from '../sidebar_context';
import epicHeader from './epic_header.vue';
export default { export default {
name: 'EpicShowApp', name: 'EpicShowApp',
...@@ -85,6 +86,27 @@ ...@@ -85,6 +86,27 @@
type: String, type: String,
required: false, required: false,
}, },
labels: {
type: Array,
required: true,
},
namespace: {
type: String,
required: false,
default: '#',
},
labelsPath: {
type: String,
required: true,
},
labelsWebUrl: {
type: String,
required: true,
},
epicsWebUrl: {
type: String,
required: true,
},
}, },
data() { data() {
return { return {
...@@ -94,6 +116,9 @@ ...@@ -94,6 +116,9 @@
projectNamespace: '', projectNamespace: '',
}; };
}, },
mounted() {
this.sidebarContext = new SidebarContext();
},
methods: { methods: {
deleteEpic() { deleteEpic() {
issuableAppEventHub.$emit('delete.issuable'); issuableAppEventHub.$emit('delete.issuable');
...@@ -137,6 +162,12 @@ ...@@ -137,6 +162,12 @@
:editable="canUpdate" :editable="canUpdate"
:initial-start-date="startDate" :initial-start-date="startDate"
:initial-end-date="endDate" :initial-end-date="endDate"
:initial-labels="labels"
:namespace="namespace"
:update-path="updateEndpoint"
:labels-path="labelsPath"
:labels-web-url="labelsWebUrl"
:epics-web-url="epicsWebUrl"
/> />
<related-issues-root <related-issues-root
:endpoint="issueLinksEndpoint" :endpoint="issueLinksEndpoint"
......
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