diff --git a/client/components/tables/CollectionBooksTable.vue b/client/components/tables/CollectionBooksTable.vue
index 63af8544..2fc7f0f0 100644
--- a/client/components/tables/CollectionBooksTable.vue
+++ b/client/components/tables/CollectionBooksTable.vue
@@ -7,7 +7,7 @@
{{ books.length }}
-
+ {{ totalDurationPretty }}
@@ -57,6 +57,16 @@ export default {
},
bookCoverAspectRatio() {
return this.coverAspectRatio === this.$constants.BookCoverAspectRatio.SQUARE ? 1 : 1.6
+ },
+ totalDuration() {
+ var _total = 0
+ this.books.forEach((book) => {
+ _total += book.media.duration
+ })
+ return _total
+ },
+ totalDurationPretty() {
+ return this.$elapsedPrettyExtended(this.totalDuration)
}
},
methods: {