status-desktop/ui/app/AppLayouts/Wallet/popups/buy/BuyCryptoParamsForm.qml

20 lines
515 B
QML
Raw Normal View History

import QtQml 2.15
QtObject {
id: root
property string selectedWalletAddress: ""
property int selectedNetworkChainId: -1
property string selectedTokenKey: ""
property string selectedProviderId: ""
readonly property bool filledCorrectly: !!selectedWalletAddress && !!selectedTokenKey && selectedNetworkChainId !== -1
function resetFormData() {
selectedWalletAddress = ""
selectedNetworkChainId = -1
selectedTokenKey = ""
selectedProviderId = ""
}
}