From c51f2d5caee61b77ea47802819c1649b9cac9071 Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Sun, 1 Nov 2020 10:52:25 -0700 Subject: [PATCH] clean up releases page --- src/pages/Releases.vue | 76 +++++++++++++----------------------------- 1 file changed, 23 insertions(+), 53 deletions(-) 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 });