feat: label to distinguish release type in All tab in Artist page; build: v1.3.6

This commit is contained in:
Roberto Tonino 2020-11-20 17:31:12 +01:00
parent 22f0d2dca6
commit d20540f46e
3 changed files with 21 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -56,17 +56,19 @@
<img class="mr-4 rounded coverart" :src="release.releaseCover" style="width: 56px; height: 56px" /> <img class="mr-4 rounded coverart" :src="release.releaseCover" style="width: 56px; height: 56px" />
<i v-if="release.isReleaseExplicit" class="material-icons title-icon title-icon--explicit">explicit</i> <i v-if="release.isReleaseExplicit" class="material-icons title-icon title-icon--explicit">explicit</i>
<div> <div>
<span class="flex hover:text-primary">{{ release.releaseTitle }}</span> <span class="flex hover:text-primary">
<!-- <span v-show="currentTab === 'all'" class="flex text-xs opacity-50 uppercase-first-letter"> {{ release.releaseTitle }}
{{ release.releaseType }} <i
</span> --> v-if="checkNewRelease(release.releaseDate)"
class="material-icons title-icon title-icon--right title-icon--new"
>
fiber_new
</i>
</span>
<span v-show="currentTab === 'all'" class="block text-xs opacity-50 uppercase-first-letter">
{{ $tc(`globals.listTabs.${release.releaseType}`) }}
</span>
</div> </div>
<i
v-if="checkNewRelease(release.releaseDate)"
class="material-icons title-icon title-icon--right title-icon--new"
>
fiber_new
</i>
</RouterLink> </RouterLink>
<td class="w-32 text-center xl:w-40">{{ release.releaseDate }}</td> <td class="w-32 text-center xl:w-40">{{ release.releaseDate }}</td>
<td class="w-20 text-center xl:w-32">{{ release.releaseTracksNumber }}</td> <td class="w-20 text-center xl:w-32">{{ release.releaseTracksNumber }}</td>

View File

@ -25,7 +25,7 @@ function formatArtistReleases(artistReleases) {
releaseDate: getPropertyWithFallback(release, 'release_date'), releaseDate: getPropertyWithFallback(release, 'release_date'),
releaseTracksNumber: getPropertyWithFallback(release, 'nb_tracks'), releaseTracksNumber: getPropertyWithFallback(release, 'nb_tracks'),
releaseLink: getPropertyWithFallback(release, 'link'), releaseLink: getPropertyWithFallback(release, 'link'),
releaseType: getPropertyWithFallback(release, 'type'), releaseType: getPropertyWithFallback(release, 'record_type'),
isReleaseExplicit: getPropertyWithFallback(release, 'explicit_lyrics') isReleaseExplicit: getPropertyWithFallback(release, 'explicit_lyrics')
}) })
} }