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
f504fc77
Commit
f504fc77
authored
Jun 14, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use computed property for issue_token state classes
parent
d056bcee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
app/assets/javascripts/issuable/related_issues/components/issue_token.vue
...cripts/issuable/related_issues/components/issue_token.vue
+8
-2
No files found.
app/assets/javascripts/issuable/related_issues/components/issue_token.vue
View file @
f504fc77
...
...
@@ -47,6 +47,12 @@ export default {
hasState
()
{
return
this
.
state
&&
this
.
state
.
length
>
0
;
},
isOpen
()
{
return
this
.
state
===
'
opened
'
||
this
.
state
===
'
reopened
'
;
},
isClosed
()
{
return
this
.
state
===
'
closed
'
;
},
hasTitle
()
{
return
this
.
title
.
length
>
0
;
},
...
...
@@ -101,8 +107,8 @@ export default {
v-if=
"hasState"
class=
"fa"
:class=
"
{
'issue-token-state-icon-open fa-circle-o':
state === 'opened' || state === 'reopened'
,
'issue-token-state-icon-closed fa-minus':
state === 'closed'
,
'issue-token-state-icon-open fa-circle-o':
isOpen
,
'issue-token-state-icon-closed fa-minus':
isClosed
,
}"
:aria-label="state">
</i>
...
...
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