From f60b6ba3f2088836c4920235d7e79d791e049e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Wed, 5 Jun 2024 14:28:24 +0200 Subject: [PATCH] fix(SendModal): Unblock sending collectibles flow Closes: #15039 --- ui/imports/shared/popups/send/SendModal.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/imports/shared/popups/send/SendModal.qml b/ui/imports/shared/popups/send/SendModal.qml index 3a274f876e..f798d5b738 100644 --- a/ui/imports/shared/popups/send/SendModal.qml +++ b/ui/imports/shared/popups/send/SendModal.qml @@ -58,7 +58,7 @@ StatusDialog { property var recalculateRoutesAndFees: Backpressure.debounce(popup, 600, function() { if(!!popup.preSelectedAccount && !!holdingSelector.selectedItem - && recipientLoader.ready && amountToSendInput.inputNumberValid) { + && recipientLoader.ready && (amountToSendInput.inputNumberValid || d.isCollectiblesTransfer)) { popup.isLoading = true popup.store.suggestedRoutes(d.isCollectiblesTransfer ? "1" : amountToSendInput.cryptoValueToSend) } @@ -81,7 +81,8 @@ StatusDialog { readonly property double maxCryptoBalance: isSelectedHoldingValidAsset ? selectedHolding.currentBalance : 0 readonly property double maxInputBalance: amountToSendInput.inputIsFiat ? maxFiatBalance : maxCryptoBalance readonly property string inputSymbol: amountToSendInput.inputIsFiat ? currencyStore.currentCurrency : !!d.selectedHolding && !!d.selectedHolding.symbol ? d.selectedHolding.symbol: "" - readonly property bool errorMode: popup.isLoading || !recipientLoader.ready ? false : errorType !== Constants.NoError || networkSelector.errorMode || !amountToSendInput.inputNumberValid + readonly property bool errorMode: popup.isLoading || !recipientLoader.ready ? false : errorType !== Constants.NoError || networkSelector.errorMode + || !(amountToSendInput.inputNumberValid || d.isCollectiblesTransfer) readonly property string uuid: Utils.uuid() property bool isPendingTx: false property string totalTimeEstimate @@ -451,7 +452,7 @@ StatusDialog { contentWidth: availableWidth - visible: recipientLoader.ready && !!d.selectedHolding && amountToSendInput.inputNumberValid + visible: recipientLoader.ready && !!d.selectedHolding && (amountToSendInput.inputNumberValid || d.isCollectiblesTransfer) objectName: "sendModalScroll" @@ -489,7 +490,7 @@ StatusDialog { maxFiatFees: popup.isLoading ? "..." : d.currencyStore.formatCurrencyAmount(d.totalFeesInFiat, d.currencyStore.currentCurrency) totalTimeEstimate: popup.isLoading? "..." : d.totalTimeEstimate pending: d.isPendingTx || popup.isLoading - visible: recipientLoader.ready && amountToSendInput.inputNumberValid && !d.errorMode + visible: recipientLoader.ready && (amountToSendInput.inputNumberValid || d.isCollectiblesTransfer) && !d.errorMode onNextButtonClicked: popup.sendTransaction() }