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
7c3ed64e
Commit
7c3ed64e
authored
Apr 28, 2021
by
Tom Quirk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix console errors from issuable_tabs
parent
4fba6a57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app/assets/javascripts/issuable_list/components/issuable_tabs.vue
...ts/javascripts/issuable_list/components/issuable_tabs.vue
+4
-3
No files found.
app/assets/javascripts/issuable_list/components/issuable_tabs.vue
View file @
7c3ed64e
...
@@ -27,7 +27,7 @@ export default {
...
@@ -27,7 +27,7 @@ export default {
return
tabName
===
this
.
currentTab
;
return
tabName
===
this
.
currentTab
;
},
},
isTabCountNumeric
(
tab
)
{
isTabCountNumeric
(
tab
)
{
return
Number
.
isInteger
(
this
.
tabCounts
[
tab
.
name
])
;
return
this
.
tabCounts
?
Number
.
isInteger
(
this
.
tabCounts
[
tab
.
name
])
:
false
;
},
},
},
},
};
};
...
@@ -48,12 +48,13 @@ export default {
...
@@ -48,12 +48,13 @@ export default {
<template
#title
>
<template
#title
>
<span
:title=
"tab.titleTooltip"
>
{{
tab
.
title
}}
</span>
<span
:title=
"tab.titleTooltip"
>
{{
tab
.
title
}}
</span>
<gl-badge
<gl-badge
v-if=
"isTabCountNumeric(tab)"
v-if=
"
tabCounts &&
isTabCountNumeric(tab)"
variant=
"neutral"
variant=
"neutral"
size=
"sm"
size=
"sm"
class=
"gl-tab-counter-badge"
class=
"gl-tab-counter-badge"
>
{{
tabCounts
[
tab
.
name
]
}}
</gl-badge
>
>
{{
tabCounts
[
tab
.
name
]
}}
</gl-badge>
</
template
>
</
template
>
</gl-tab>
</gl-tab>
</gl-tabs>
</gl-tabs>
...
...
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