diff --git a/src/pages/Releases.vue b/src/pages/Releases.vue index 502b8a4d..f1f44917 100644 --- a/src/pages/Releases.vue +++ b/src/pages/Releases.vue @@ -10,53 +10,31 @@ class="position-sticky" /> - - - - - -
- {{ release.tag_name }} - {{ release.name }} -
-
-
-
+ + + - - - + + + {{ $t('releases.published') }} {{ formatDate(release.published_at) }} + - - {{ $t('releases.published') }} {{ formatDate(selectedRelease.published_at) }} - - - - - - - -
+ + +
@@ -70,12 +48,6 @@ export default { VueMarkdown, }, - data() { - return { - selectedRelease: null, - }; - }, - computed: { ...mapState(['releases', 'notification', 'settings']), ...mapGetters(['nightMode']), @@ -84,8 +56,6 @@ export default { mounted() { const [latestRelease] = this.releases; - this.selectedRelease = latestRelease; - if (this.notification && latestRelease && latestRelease.tag_name) { this.$store.commit('UPDATE_SETTING', { key: 'release', value: latestRelease.tag_name });