Hide "Save to IPFS" item from post menu if it is not public

This commit is contained in:
silverpill 2022-01-14 16:06:17 +00:00
parent 58fa80cc2b
commit b39f4270d2

View file

@ -378,6 +378,7 @@ export default class PostComponent extends Vue {
return (
!!this.store.instance?.ipfs_gateway_url &&
this.post.account.id === this.store.currentUser?.id &&
this.post.visibility === "public" &&
this.post.ipfs_cid === null &&
!this.isWaitingForToken
)
@ -433,6 +434,7 @@ export default class PostComponent extends Vue {
return (
!!this.store.instance?.nft_contract_address &&
this.post.account.id === this.store.currentUser?.id &&
this.post.visibility === "public" &&
!this.isTokenized &&
!this.isWaitingForToken
)