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
322b4e20
Commit
322b4e20
authored
Nov 08, 2017
by
Simon Knox
Committed by
Jarka Kadlecova
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add related issues component to Epic
parent
1f298fc4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
4 deletions
+34
-4
app/assets/javascripts/issuable/related_issues/components/related_issues_block.vue
...suable/related_issues/components/related_issues_block.vue
+5
-1
app/assets/javascripts/issuable/related_issues/components/related_issues_root.vue
...ssuable/related_issues/components/related_issues_root.vue
+13
-2
app/assets/javascripts/issuable/related_issues/stores/related_issues_store.js
...ts/issuable/related_issues/stores/related_issues_store.js
+1
-1
ee/app/assets/javascripts/epics/epic_show/components/epic_show_app.vue
.../javascripts/epics/epic_show/components/epic_show_app.vue
+15
-0
No files found.
app/assets/javascripts/issuable/related_issues/components/related_issues_block.vue
View file @
322b4e20
...
...
@@ -54,6 +54,10 @@ export default {
required
:
false
,
default
:
()
=>
({}),
},
title
:
{
type
:
String
,
required
:
true
,
},
},
directives
:
{
...
...
@@ -100,7 +104,7 @@ export default {
class=
"panel-heading"
:class=
"
{ 'panel-empty-heading': !this.hasBody }">
<h3
class=
"panel-title"
>
Related issues
{{
title
}}
<a
v-if=
"hasHelpPath"
:href=
"helpPath"
>
...
...
app/assets/javascripts/issuable/related_issues/components/related_issues_root.vue
View file @
322b4e20
...
...
@@ -50,6 +50,11 @@ export default {
required
:
false
,
default
:
''
,
},
title
:
{
type
:
String
,
required
:
false
,
default
:
'
Related issues
'
,
},
},
data
()
{
...
...
@@ -137,7 +142,11 @@ export default {
this
.
store
.
setRelatedIssues
(
issues
);
this
.
isFetching
=
false
;
})
.
catch
(()
=>
new
Flash
(
'
An error occurred while fetching related issues.
'
));
.
catch
(()
=>
{
this
.
store
.
setRelatedIssues
([]);
this
.
isFetching
=
false
;
Flash
(
'
An error occurred while fetching issues.
'
)
});
},
onInput
(
newValue
,
caretPos
)
{
...
...
@@ -215,5 +224,7 @@ export default {
:pending-references=
"state.pendingReferences"
:is-form-visible=
"isFormVisible"
:input-value=
"inputValue"
:auto-complete-sources=
"autoCompleteSources"
/>
:auto-complete-sources=
"autoCompleteSources"
:title=
"title"
/>
</
template
>
app/assets/javascripts/issuable/related_issues/stores/related_issues_store.js
View file @
322b4e20
...
...
@@ -8,7 +8,7 @@ class RelatedIssuesStore {
};
}
setRelatedIssues
(
issues
)
{
setRelatedIssues
(
issues
=
[]
)
{
this
.
state
.
relatedIssues
=
issues
;
}
...
...
ee/app/assets/javascripts/epics/epic_show/components/epic_show_app.vue
View file @
322b4e20
<
script
>
import
issuableApp
from
'
~/issue_show/components/app.vue
'
;
import
epicHeader
from
'
./epic_header.vue
'
;
import
relatedIssuesRoot
from
'
~/issuable/related_issues/components/related_issues_root.vue
'
;
export
default
{
name
:
'
epicShowApp
'
,
...
...
@@ -59,6 +61,13 @@
components
:
{
epicHeader
,
issuableApp
,
relatedIssuesRoot
,
},
computed
:
{
// TODO: this should be a prop here, from a data-attribute on epic-show-app element
issuesEndpoint
()
{
return
`
${
this
.
endpoint
}
/links`
;
},
},
created
()
{
// Epics specific configuration
...
...
@@ -91,6 +100,12 @@
:project-namespace=
"projectNamespace"
:show-inline-edit-button=
"true"
/>
<related-issues-root
:endpoint=
"issuesEndpoint"
:can-add-related-issues=
"true"
title=
"Issues"
help-path=
"/"
/>
</div>
</div>
</
template
>
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