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
bb0d3305
Commit
bb0d3305
authored
Sep 24, 2020
by
Martin Wortschack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace fa-warning icon in VSA limit warning
parent
8bdc4fc9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
changelogs/unreleased/mw-vsa-limit-warnings-icon-refactor.yml
...gelogs/unreleased/mw-vsa-limit-warnings-icon-refactor.yml
+5
-0
ee/app/assets/javascripts/analytics/cycle_analytics/components/limit_warning_component.vue
...cs/cycle_analytics/components/limit_warning_component.vue
+14
-19
No files found.
changelogs/unreleased/mw-vsa-limit-warnings-icon-refactor.yml
0 → 100644
View file @
bb0d3305
---
title
:
'
VSA:
Replace
fa-warning
with
GitLab
SVG'
merge_request
:
43262
author
:
type
:
changed
ee/app/assets/javascripts/analytics/cycle_analytics/components/limit_warning_component.vue
View file @
bb0d3305
<
script
>
import
{
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
{
GlTooltipDirective
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
n__
}
from
'
~/locale
'
;
import
{
EVENTS_LIST_ITEM_LIMIT
}
from
'
../constants
'
;
export
default
{
components
:
{
GlIcon
,
},
directives
:
{
GlTooltip
:
GlTooltipDirective
,
},
...
...
@@ -12,27 +16,18 @@ export default {
required
:
true
,
},
},
data
()
{
return
{
EVENTS_LIST_ITEM_LIMIT
};
},
eventsListItemLimit
:
EVENTS_LIST_ITEM_LIMIT
,
tooltipTitle
:
n__
(
'
Limited to showing %d event at most
'
,
'
Limited to showing %d events at most
'
,
EVENTS_LIST_ITEM_LIMIT
,
),
};
</
script
>
<
template
>
<!-- TODO: im not sure why this is rendered only for exactly 50 items, why not >= 50? -->
<span
v-if=
"count >= EVENTS_LIST_ITEM_LIMIT"
class=
"events-info float-right"
>
<i
v-gl-tooltip
:title=
"
n__(
'Limited to showing %d event at most',
'Limited to showing %d events at most',
EVENTS_LIST_ITEM_LIMIT,
)
"
class=
"fa fa-warning"
aria-hidden=
"true"
>
</i>
{{
n__
(
'
Showing %d event
'
,
'
Showing %d events
'
,
EVENTS_LIST_ITEM_LIMIT
)
}}
<span
v-if=
"count >= $options.eventsListItemLimit"
class=
"events-info float-right"
>
<gl-icon
v-gl-tooltip=
"
{ title: $options.tooltipTitle }" name="warning" aria-hidden="true" />
{{
n__
(
'
Showing %d event
'
,
'
Showing %d events
'
,
$options
.
eventsListItemLimit
)
}}
</span>
</
template
>
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