mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-30 18:48:55 +01:00
Update:Show seconds in elapsedPretty
This commit is contained in:
parent
d285845e04
commit
caea6c6371
@ -41,6 +41,9 @@ Vue.prototype.$bytesPretty = (bytes, decimals = 2) => {
|
||||
}
|
||||
|
||||
Vue.prototype.$elapsedPretty = (seconds) => {
|
||||
if (seconds < 60) {
|
||||
return `${Math.floor(seconds)} sec`
|
||||
}
|
||||
var minutes = Math.floor(seconds / 60)
|
||||
if (minutes < 70) {
|
||||
return `${minutes} min`
|
||||
|
@ -64,6 +64,9 @@ module.exports.getId = (prepend = '') => {
|
||||
}
|
||||
|
||||
function elapsedPretty(seconds) {
|
||||
if (seconds < 60) {
|
||||
return `${Math.floor(seconds)} sec`
|
||||
}
|
||||
var minutes = Math.floor(seconds / 60)
|
||||
if (minutes < 70) {
|
||||
return `${minutes} min`
|
||||
|
Loading…
Reference in New Issue
Block a user