diff --git a/client/components/app/SideRail.vue b/client/components/app/SideRail.vue index 56207526..b3985fc2 100644 --- a/client/components/app/SideRail.vue +++ b/client/components/app/SideRail.vue @@ -121,7 +121,7 @@

{{ Source }}

- + @@ -152,6 +152,9 @@ export default { paramId() { return this.$route.params ? this.$route.params.id || '' : '' }, + dateFormat() { + return this.$store.state.serverSettings.dateFormat + }, currentLibraryId() { return this.$store.state.libraries.currentLibraryId }, @@ -222,6 +225,9 @@ export default { currentVersionChangelog() { return this.versionData.currentVersionChangelog || 'No Changelog Available' }, + currentVersionPubDate() { + return `${this.$formatDate(this.versionData.currentVersionPubDate, this.dateFormat)}` || 'Unknown release date' + }, streamLibraryItem() { return this.$store.state.streamLibraryItem }, @@ -245,4 +251,4 @@ export default { #siderail-buttons-container.player-open { max-height: calc(100vh - 64px - 48px - 160px); } - \ No newline at end of file + diff --git a/client/components/modals/changelog/ViewModal.vue b/client/components/modals/changelog/ViewModal.vue index 98b28b21..05503c43 100644 --- a/client/components/modals/changelog/ViewModal.vue +++ b/client/components/modals/changelog/ViewModal.vue @@ -6,7 +6,7 @@
-

Changelog v{{ currentVersionNumber }}

+

Changelog v{{ currentVersionNumber }} ({{ currentVersionPubDate }})

@@ -19,6 +19,7 @@ export default { props: { value: Boolean, changelog: String, + currentPubDate: String, currentVersion: String }, watch: { @@ -43,6 +44,9 @@ export default { compiledMarkedown() { return marked.parse(this.changelog, { gfm: true, breaks: true }) }, + currentVersionPubDate() { + return this.currentPubDate + }, currentVersionNumber() { return this.currentVersion } @@ -57,7 +61,7 @@ export default { \ No newline at end of file +