-
Notifications
You must be signed in to change notification settings - Fork 8
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
[BRAAV-11383] Dynamically populate blockchain dropdown #242
Conversation
…-sample-app into supported-currencies
@@ -86,17 +104,30 @@ export default class CreatePaymentIntentClass extends Vue { | |||
expiresOn: '', | |||
} | |||
|
|||
currencyBlockchainPairs: CurrencyBlockchainPairs = | |||
this.$cryptoPaymentMetadataApi.getSupportedCurrencyAndBlockchainCombinations() | |||
|
|||
required = [(v: string) => !!v || 'Field is required'] | |||
error = {} | |||
loading = false | |||
showError = false | |||
supportedCurrencies = ['BTC', 'ETH', 'USD'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually need to hardcode supportedCurrencies
initially? It should be dynamically populated from the api response
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True - I will update this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in this commit: get currencies dynamically
@@ -86,17 +104,33 @@ export default class CreatePaymentIntentClass extends Vue { | |||
expiresOn: '', | |||
} | |||
|
|||
currencyBlockchainPairs: CurrencyBlockchainPairs = | |||
this.$cryptoPaymentMetadataApi.getSupportedCurrencyAndBlockchainCombinations() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I this missing await?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@elizalucas could it be the bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this has to do with it - I added this in this PR but still not fully solved yet
This PR dynamically populates the blockchain dropdown of the
POST /paymentintents
screen based on an api output. The flow of the page is as follows:POST /paymentIntents
page, only the currency dropdown is visible