diff --git a/client/pages/config/to-go.vue b/client/pages/config/to-go.vue index 8ef474ffc..b2ca61752 100644 --- a/client/pages/config/to-go.vue +++ b/client/pages/config/to-go.vue @@ -3,85 +3,108 @@

Current Progress

-
-
+
+
-

{{(this.listenedTime / 3600).toFixed(1)}} Hours

-

- {{ (this.libraryStats.totalDuration / 3600).toFixed(1) }} total hours -

+

{{ $elapsedPretty(listenedTime) }}

+
+ + {{ this.$getString('LabelTotal', [$elapsedPretty(libraryStats.totalDuration)]) }} + +
+
+
+
-
-
-
-
-
+ +
+
-

{{this.currentMediaProgress.length}} items listened

-

- {{ this.items.length }} total items -

+

{{ this.$getString('LabelItemsListened', [currentMediaProgress.length]) }}

+ + {{ this.$getString('LabelItemsTotal', [items.length]) }} + +
+
+
-
-
-
-

Items to continue

- - - -
No Cover
- - -

{{ item.media.metadata.title || 'Unknown' }}

-

{{ item.media.metadata.subtitle }}

- - -

{{ Math.floor(item.mediaProgress.progress * 100) }}%

- - - - Show more - -

Unfinished Items

- - - -
No Cover
- - -

{{ item.media.metadata.title || 'Unknown' }}

-

{{ item.media.metadata.subtitle }}

- - -

{{ item.media.duration }}

- - +
+
+

Items to continue

+ + + + + + + + + + + +
+ +
No Cover
+
+

{{ item.media.metadata.title || 'Unknown' }}

+

{{ item.media.metadata.subtitle }}

+
+

{{ Math.floor(item.mediaProgress.progress * 100) }}%

+
Show more
+
- - - Load 3 More from Top - | - Load 3 More from Bottom - - - - - - -
No Cover
- - -

{{ item.media.metadata.title || 'Unknown' }}

-

{{ item.media.metadata.subtitle }}

- - +
+

Unfinished Items

+ + + + + + + + + + + + + + + + +
+ +
No Cover
+
+

{{ item.media.metadata.title || 'Unknown' }}

+

{{ item.media.metadata.subtitle }}

+
+

+ {{ $elapsedPretty(item.media.duration) }} +

+
+ Load More from Top + | + Load More from Bottom +
+ +
No Cover
+
+

{{ item.media.metadata.title || 'Unknown' }}

+

{{ item.media.metadata.subtitle }}

+
+

+ {{ $elapsedPretty(item.media.duration) }} +

+
+
+
@@ -93,7 +116,7 @@ export default { return { items: null, libraryStats: null, - itemsToShow: 6, + itemsToShow: 7, topItemsToShow: 3, bottomItemsToShow: 3, } @@ -102,6 +125,7 @@ export default { currentLibraryId(newVal, oldVal) { if (newVal) { this.init() + this.resetValues() } } }, @@ -205,6 +229,11 @@ export default { loadMoreBottomItems() { const maxBottomItems = this.unfinishedItems.length - this.topItemsToShow; this.bottomItemsToShow = Math.min(this.bottomItemsToShow + 3, maxBottomItems); + }, + resetValues() { + this.itemsToShow = 7 + this.topItemsToShow = 3 + this.bottomItemsToShow = 3 } }, mounted() { diff --git a/client/strings/en-us.json b/client/strings/en-us.json index c6bc938a9..10c5ff81c 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -350,6 +350,8 @@ "LabelIntervalEveryHour": "Every hour", "LabelInvert": "Invert", "LabelItem": "Item", + "LabelItemsListened": "{0} items listened", + "LabelItemsTotal": "{0} items total", "LabelJumpBackwardAmount": "Jump backward amount", "LabelJumpForwardAmount": "Jump forward amount", "LabelLanguage": "Language", @@ -584,6 +586,7 @@ "LabelToolsMakeM4bDescription": "Generate a .M4B audiobook file with embedded metadata, cover image, and chapters.", "LabelToolsSplitM4b": "Split M4B to MP3's", "LabelToolsSplitM4bDescription": "Create MP3's from an M4B split by chapters with embedded metadata, cover image, and chapters.", + "LabelTotal": "{0} total", "LabelTotalDuration": "Total Duration", "LabelTotalTimeListened": "Total Time Listened", "LabelTrackFromFilename": "Track from Filename",