Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 Hide reserve settings for NewsPress mode #477

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions components/NFTMint/WriterMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

<template v-if="shouldShowSettings">
<div
v-if="!isNewsPress"
class="flex flex-col justify-start gap-[32px] p-[20px] pb-[24px] border-2 border-[#E6F4F2] rounded-[16px] w-full"
>
<Label
Expand Down Expand Up @@ -149,6 +150,7 @@
</select>
</div>
<div
v-if="!isNewsPress"
class="flex justify-between gap-[12px] text-dark-gray text-[14px] items-center"
>
<label>
Expand Down Expand Up @@ -179,6 +181,7 @@ export default class WriterMessage extends Vue {
@Prop(Number) readonly mintAmount!: number
@Prop(Number) readonly maxMintAmount!: number
@Prop(String) readonly collectExpiryDate!: string
@Prop(Boolean) readonly isNewsPress!: boolean

userInfo: any = undefined
avatar: string = ''
Expand Down
3 changes: 3 additions & 0 deletions pages/nft/iscn/_iscnId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
:max-mint-amount="maxMintAmount"
:reserve-amount.sync="reserveNft"
:collect-expiry-date.sync="collectExpiryDate"
:is-news-press="isNewsPress"
@message-change="(value) => (message = value)"
@update-mint-amount.once="handleInputMintAmount"
@update-reserve.once="handleInputReserveNft"
Expand Down Expand Up @@ -226,6 +227,8 @@
@walletModule.Getter('getSigner') signer!: OfflineSigner | null

platform = this.$route.query.platform as string || ''
isNewsPress = !!this.$route.query.news_press && this.$route.query.news_press !== '0'


classId: string = ''
nftsIds: string[] = []
Expand Down Expand Up @@ -733,7 +736,7 @@
this.isCustomOgimage = true;
logTrackerEvent(this, 'IscnMintNFT', 'GetOgImageExists', arweaveID, 1);
} catch (err) {
console.error(err)

Check warning on line 739 in pages/nft/iscn/_iscnId.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 18)

Unexpected console statement
}
}
if (!this.ogImageBlob && !this.ogImageArweaveId) {
Expand Down
Loading