From e847e92e218c1eb2bbe2e5269f2ae080759cb35c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20Pe=C3=B1a?= <devilcius@gmail.com>
Date: Sun, 21 Mar 2021 10:07:50 +0100
Subject: [PATCH] Adds album's year to base and card view (#1366)

---
 front/src/components/audio/album/Card.vue  | 3 +++
 front/src/components/library/AlbumBase.vue | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue
index aafa2e4a43..d1952e5ddd 100644
--- a/front/src/components/audio/album/Card.vue
+++ b/front/src/components/audio/album/Card.vue
@@ -17,6 +17,9 @@
             {{ album.artist.name }}
           </router-link>
         </span>
+        <div v-if="album.release_date">
+          {{ album.release_date | moment('Y') }}
+        </div>         
       </div>
     </div>
     <div class="extra content">
diff --git a/front/src/components/library/AlbumBase.vue b/front/src/components/library/AlbumBase.vue
index 8ae555f6c8..370d9ad258 100644
--- a/front/src/components/library/AlbumBase.vue
+++ b/front/src/components/library/AlbumBase.vue
@@ -59,6 +59,9 @@
               <header>
                 <h2 class="ui header" :title="object.title">
                   {{ object.title }}
+                  <span class="ui sub header" v-if="object.release_date">
+                    {{ object.release_date | moment('Y') }}
+                  </span>                   
                 </h2>
                 <artist-label class="rounded" :artist="artist"></artist-label>
               </header>
-- 
GitLab