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
687e6f1e
Commit
687e6f1e
authored
Oct 01, 2020
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change isOpen to include "reopened" state
parent
4249e44b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/vue_shared/mixins/related_issuable_mixin.js
...s/javascripts/vue_shared/mixins/related_issuable_mixin.js
+1
-1
spec/frontend/issuable/related_issues/components/issue_token_spec.js
...nd/issuable/related_issues/components/issue_token_spec.js
+1
-1
No files found.
app/assets/javascripts/vue_shared/mixins/related_issuable_mixin.js
View file @
687e6f1e
...
...
@@ -111,7 +111,7 @@ const mixins = {
return
this
.
isMergeRequest
&&
this
.
pipelineStatus
&&
Object
.
keys
(
this
.
pipelineStatus
).
length
;
},
isOpen
()
{
return
this
.
state
===
'
opened
'
;
return
this
.
state
===
'
opened
'
||
this
.
state
===
'
reopened
'
;
},
isClosed
()
{
return
this
.
state
===
'
closed
'
;
...
...
spec/frontend/issuable/related_issues/components/issue_token_spec.js
View file @
687e6f1e
...
...
@@ -78,7 +78,7 @@ describe('IssueToken', () => {
it
.
each
`
state | icon | cssClass
${
'
opened
'
}
|
${
'
issue-open-m
'
}
|
${
'
issue-token-state-icon-open
'
}
${
'
reopened
'
}
|
${
'
issue-
close
'
}
|
${
'
issue-token-state-icon-closed
'
}
${
'
reopened
'
}
|
${
'
issue-
open-m
'
}
|
${
'
issue-token-state-icon-open
'
}
${
'
closed
'
}
|
${
'
issue-close
'
}
|
${
'
issue-token-state-icon-closed
'
}
`
(
'
shows "$icon" icon when "$state"
'
,
({
state
,
icon
,
cssClass
})
=>
{
createComponent
({
...
...
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