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
019bf2e7
Commit
019bf2e7
authored
Jul 28, 2020
by
Jake Lear
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add iteration link to issue sidebar
parent
1c8ff093
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
ee/app/assets/javascripts/sidebar/components/iteration_select.vue
...ssets/javascripts/sidebar/components/iteration_select.vue
+7
-4
ee/app/assets/javascripts/sidebar/queries/group_iterations.query.graphql
...avascripts/sidebar/queries/group_iterations.query.graphql
+1
-0
No files found.
ee/app/assets/javascripts/sidebar/components/iteration_select.vue
View file @
019bf2e7
...
...
@@ -90,10 +90,13 @@ export default {
};
},
computed
:
{
iteration
()
{
iteration
Title
()
{
// NOTE: Optional chaining guards when search result is empty
return
this
.
iterations
.
find
(({
id
})
=>
id
===
this
.
currentIteration
)?.
title
;
},
iterationUrl
()
{
return
this
.
iterations
.
find
(({
id
})
=>
id
===
this
.
currentIteration
)?.
webUrl
;
},
showNoIterationContent
()
{
return
!
this
.
editing
&&
!
this
.
currentIteration
;
},
...
...
@@ -159,7 +162,7 @@ export default {
<div>
<div
v-gl-tooltip
class=
"sidebar-collapsed-icon"
>
<gl-icon
:size=
"16"
:aria-label=
"$options.iterationText"
name=
"iteration"
/>
<span
class=
"collapse-truncated-title"
>
{{
iteration
}}
</span>
<span
class=
"collapse-truncated-title"
>
{{
iteration
Title
}}
</span>
</div>
<div
class=
"title hide-collapsed mt-3"
>
{{
$options
.
iterationText
}}
...
...
@@ -177,8 +180,8 @@ export default {
</div>
<div
data-testid=
"select-iteration"
class=
"hide-collapsed"
>
<span
v-if=
"showNoIterationContent"
class=
"no-value"
>
{{
$options
.
noIteration
}}
</span>
<gl-link
v-else-if=
"!editing"
href
><strong>
{{
iteration
}}
</strong></gl-link
<gl-link
v-else-if=
"!editing"
:href=
"iterationUrl"
><strong>
{{
iteration
Title
}}
</strong></gl-link
>
</div>
<gl-new-dropdown
...
...
ee/app/assets/javascripts/sidebar/queries/group_iterations.query.graphql
View file @
019bf2e7
...
...
@@ -5,6 +5,7 @@ query groupIterations($fullPath: ID!, $title: String) {
id
title
state
webUrl
}
}
}
...
...
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