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
5bedd81b
Commit
5bedd81b
authored
Jun 14, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Account for "reopened" state
parent
ca518945
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
app/assets/javascripts/issuable/related_issues/components/issue_token.vue
...cripts/issuable/related_issues/components/issue_token.vue
+1
-1
spec/javascripts/issuable/related_issues/components/issue_token_spec.js
...ts/issuable/related_issues/components/issue_token_spec.js
+16
-0
No files found.
app/assets/javascripts/issuable/related_issues/components/issue_token.vue
View file @
5bedd81b
...
...
@@ -101,7 +101,7 @@ export default {
v-if=
"hasState"
class=
"fa"
:class=
"
{
'issue-token-state-icon-open fa-circle-o': state === 'opened',
'issue-token-state-icon-open fa-circle-o': state === 'opened'
|| state === 'reopened'
,
'issue-token-state-icon-closed fa-minus': state === 'closed',
}"
:aria-label="state">
...
...
spec/javascripts/issuable/related_issues/components/issue_token_spec.js
View file @
5bedd81b
...
...
@@ -91,6 +91,22 @@ describe('IssueToken', () => {
});
});
describe
(
'
`state:
\'
reopened
\'
`
'
,
()
=>
{
beforeEach
(()
=>
{
vm
=
new
IssueToken
({
propsData
:
{
idKey
,
displayReference
,
state
:
'
reopened
'
,
},
}).
$mount
();
});
it
(
'
shows green circle icon
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.issue-token-state-icon-open.fa.fa-circle-o
'
)).
toBeDefined
();
});
});
describe
(
'
`state:
\'
closed
\'
`
'
,
()
=>
{
beforeEach
(()
=>
{
vm
=
new
IssueToken
({
...
...
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