Sort featured versions and remove heart fill when not signed in

This commit is contained in:
Prospector
2023-01-07 19:30:33 -08:00
committed by Prospector
parent d5ffede5ea
commit 62125d0284

View File

@@ -264,7 +264,7 @@
Report
</a>
<a class="iconified-button" :href="authUrl">
<HeartIcon fill="currentColor" aria-hidden="true" />
<HeartIcon aria-hidden="true" />
Follow
</a>
</template>
@@ -982,6 +982,13 @@ export default {
this.reset()
this.versions = this.$computeVersions(this.versions)
this.featuredVersions = this.$computeVersions(this.featuredVersions)
this.featuredVersions.sort((a, b) => {
const aLatest = a.game_versions[a.game_versions.length - 1]
const bLatest = b.game_versions[b.game_versions.length - 1]
const gameVersions = this.$tag.gameVersions.map((e) => e.version)
return gameVersions.indexOf(aLatest) - gameVersions.indexOf(bLatest)
})
},
head() {
const title = `${this.project.title} - Minecraft ${this.$formatProjectType(