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

[TAS-376]🎨 Change initial price to USD #388

Merged
merged 5 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
19 changes: 12 additions & 7 deletions components/NFTMint/WriterMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
>
<span>{{ $t('NFTPortal.label.initialBatch.input') }}</span>
<select ref="batchInput" @change="(e) => $emit('update-initial-batch', e.target.value)">
<option v-for="{ batch, price } in initialBatchOptions" :key="batch" :value="batch" :selected="batch === 4">
{{ price }}
<option v-for="{ batch, price } in initialBatchOptions" :key="batch" :value="batch" :selected="batch === 0">
${{ price }}
</option>
</select>
</div>
Expand All @@ -156,7 +156,7 @@
{{ $t('NFTPortal.label.collectExpiryDate.input') }}
</label>
<input v-if=shouldShowCollectExpiryDateInput ref="collectExpiryDateInput" type="date" :min="tomorrow" @change="updateCollectExpiryDate($event)" />
</div>
</div>
</div>
</template>
</div>
Expand Down Expand Up @@ -192,10 +192,15 @@ export default class WriterMessage extends Vue {

initialBatchOptions = [
{ batch: -1, price: this.$t('NFTPortal.label.initialBatch.free') },
{ batch: 0, price: 8 },
{ batch: 4, price: 128 },
{ batch: 7, price: 1024 },
{ batch: 9, price: 4096 },
{ batch: 0, price: 1 },
{ batch: 1, price: 2 },
{ batch: 2, price: 4 },
{ batch: 3, price: 8 },
{ batch: 4, price: 16 },
{ batch: 5, price: 32 },
{ batch: 6, price: 64 },
{ batch: 7, price: 128 },
{ batch: 8, price: 256 },
]

get shouldShowInitialBatchSettings() {
Expand Down
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
"NFTPortal.label.defaultDescription": "(no description)",
"NFTPortal.label.detailsPage": "NFT Details Page :",
"NFTPortal.label.fileUpload": "Has a file? Upload to ISCN here",
"NFTPortal.label.initialBatch.input": "Initial Price (LIKE)",
"NFTPortal.label.initialBatch.input": "Initial Price (USD)",
"NFTPortal.label.initialBatch.free": "All Free",
"NFTPortal.label.input.email": "Join our community and stay in the loop on exclusive product updates and offers. {link} now!",
"NFTPortal.label.input.link": "Please leave your email",
Expand Down
Loading