Hide "Save to IPFS" item from post menu if it is not public
This commit is contained in:
parent
58fa80cc2b
commit
b39f4270d2
1 changed files with 2 additions and 0 deletions
|
@ -378,6 +378,7 @@ export default class PostComponent extends Vue {
|
||||||
return (
|
return (
|
||||||
!!this.store.instance?.ipfs_gateway_url &&
|
!!this.store.instance?.ipfs_gateway_url &&
|
||||||
this.post.account.id === this.store.currentUser?.id &&
|
this.post.account.id === this.store.currentUser?.id &&
|
||||||
|
this.post.visibility === "public" &&
|
||||||
this.post.ipfs_cid === null &&
|
this.post.ipfs_cid === null &&
|
||||||
!this.isWaitingForToken
|
!this.isWaitingForToken
|
||||||
)
|
)
|
||||||
|
@ -433,6 +434,7 @@ export default class PostComponent extends Vue {
|
||||||
return (
|
return (
|
||||||
!!this.store.instance?.nft_contract_address &&
|
!!this.store.instance?.nft_contract_address &&
|
||||||
this.post.account.id === this.store.currentUser?.id &&
|
this.post.account.id === this.store.currentUser?.id &&
|
||||||
|
this.post.visibility === "public" &&
|
||||||
!this.isTokenized &&
|
!this.isTokenized &&
|
||||||
!this.isWaitingForToken
|
!this.isWaitingForToken
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue