Update changelog version to link to release, pass versionData into changelog modal

This commit is contained in:
advplyr
2024-07-06 16:28:36 -05:00
parent b0f1827e3c
commit 1e5cb09ada
2 changed files with 20 additions and 28 deletions

View File

@ -121,7 +121,7 @@
<p v-else class="text-xxs text-gray-400 leading-3 text-center italic">{{ Source }}</p>
</div>
<modals-changelog-view-modal v-model="showChangelogModal" :changelog="currentVersionChangelog" :currentVersion="$config.version" :currentPubDate="currentVersionPubDate" />
<modals-changelog-view-modal v-model="showChangelogModal" :versionData="versionData" />
</div>
</template>
@ -152,9 +152,6 @@ 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,12 +219,6 @@ export default {
githubTagUrl() {
return this.versionData.githubTagUrl
},
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
},