mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Add quick filter buttons.
This commit is contained in:
parent
9beec1b50e
commit
ff4492ffb5
10 changed files with 80 additions and 25 deletions
|
|
@ -24,7 +24,7 @@ export function formatTime(val) {
|
|||
}
|
||||
|
||||
export function formatShortTime(val, formats = ['m', 's'], space = '') {
|
||||
if (val === 0) {
|
||||
if (val <= 0) {
|
||||
return `0${formats[formats.length - 1]}`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue