Skip to content

Commit

Permalink
Update to alternate assets v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jul 9, 2024
1 parent 2c9c912 commit 108947e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Asset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
<b-collapse :id="uid" v-model="expanded" :accordion="type" role="tabpanel" @input="collapseToggled">
<template v-if="hasAlternatives">
<b-tabs card>
<b-tab :title="asset.name || $t('assets.alternate.main')" active>
<b-tab :title="asset['alternate:name'] || $t('assets.alternate.main')" active>
<AssetAlternative :asset="asset" :context="context" :shown="shown" hasAlternatives @show="show" />
</b-tab>
<b-tab v-for="(altAsset, key) in alternatives" :title="altAsset.name || key" :key="key">
<b-tab v-for="(altAsset, key) in alternatives" :title="altAsset['alternate:name'] || key" :key="key">
<AssetAlternative :asset="altAsset" :context="context" :shown="shown" hasAlternatives :key="key" @show="show" />
</b-tab>
</b-tabs>
Expand Down

0 comments on commit 108947e

Please sign in to comment.