Skip to content

Commit

Permalink
✨ Show content conditionally for nft book
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed May 24, 2024
1 parent c33f423 commit b5ca348
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pages/view/_iscnId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
/>
</NuxtLink>
<Button
v-if="viewContentURL"
v-if="showContentLinks && viewContentURL"
class="mx-auto mt-[16px]"
preset="outline"
:text="$t('NFTPortal.button.viewContent')"
Expand Down Expand Up @@ -227,6 +227,7 @@
/>
</FormField>
<FormField
v-if="showContentLinks"
:label="$t('iscn.meta.content.fingerprints')"
class="mb-[12px]"
>
Expand Down Expand Up @@ -625,6 +626,10 @@ export default class ViewIscnIdPage extends Vue {
return Boolean(this.iscnOwner === this.currentAddress)
}
get showContentLinks() {
return !this.isNFTBook || this.isIscnOwner
}
get isPopupLayout() {
return this.$route.query.layout === 'popup'
}
Expand Down

0 comments on commit b5ca348

Please sign in to comment.