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
7d91c944
Commit
7d91c944
authored
Aug 18, 2020
by
Eulyeon Ko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Break if statements to improve readability
parent
0f586173
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
app/assets/javascripts/issuables_list/components/issuables_list_app.vue
...ascripts/issuables_list/components/issuables_list_app.vue
+9
-3
No files found.
app/assets/javascripts/issuables_list/components/issuables_list_app.vue
View file @
7d91c944
...
...
@@ -97,9 +97,13 @@ export default {
emptyState
()
{
if
(
this
.
issuables
.
length
)
{
return
{};
// Empty state shouldn't be shown here
}
else
if
(
this
.
isServiceDesk
)
{
}
if
(
this
.
isServiceDesk
)
{
return
emptyStateHelper
(
this
.
emptyStateMeta
);
}
else
if
(
this
.
hasFilters
)
{
}
if
(
this
.
hasFilters
)
{
return
{
title
:
__
(
'
Sorry, your filter produced no results
'
),
svgPath
:
this
.
emptyStateMeta
.
svgPath
,
...
...
@@ -107,7 +111,9 @@ export default {
primaryLink
:
this
.
emptyStateMeta
.
createIssuePath
,
primaryText
:
__
(
'
New issue
'
),
};
}
else
if
(
this
.
filters
.
state
===
'
opened
'
)
{
}
if
(
this
.
filters
.
state
===
'
opened
'
)
{
return
{
title
:
__
(
'
There are no open issues
'
),
svgPath
:
this
.
emptyStateMeta
.
svgPath
,
...
...
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