parent
2c50004275
commit
197c211fbc
|
@ -247,7 +247,6 @@ StackView {
|
|||
ownerToken.accountAddress,
|
||||
Constants.TokenType.ERC721)
|
||||
|
||||
|
||||
feeText: root.feeText
|
||||
feeErrorText: root.feeErrorText
|
||||
isFeeLoading: root.isFeeLoading
|
||||
|
@ -259,6 +258,7 @@ StackView {
|
|||
editOwnerTokenView.communityName)
|
||||
totalFeeText: root.isFeeLoading ?
|
||||
"" : root.feeText
|
||||
errorText: root.feeErrorText
|
||||
accountName: editOwnerTokenView.ownerToken.accountName
|
||||
|
||||
model: QtObject {
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
import QtQuick 2.15
|
||||
import QtQuick.Layouts 1.14
|
||||
|
||||
import StatusQ.Components 0.1
|
||||
import StatusQ.Controls 0.1
|
||||
import StatusQ.Core 0.1
|
||||
import StatusQ.Core.Theme 0.1
|
||||
import StatusQ.Controls 0.1
|
||||
import StatusQ.Components 0.1
|
||||
import StatusQ.Core.Utils 0.1 as SQUtils
|
||||
import StatusQ.Popups 0.1
|
||||
|
||||
import utils 1.0
|
||||
|
||||
import AppLayouts.Communities.panels 1.0
|
||||
import AppLayouts.Communities.controls 1.0
|
||||
import AppLayouts.Communities.helpers 1.0
|
||||
|
||||
import AppLayouts.Communities.panels 1.0
|
||||
import AppLayouts.Wallet.controls 1.0
|
||||
import utils 1.0
|
||||
|
||||
import SortFilterProxyModel 0.2
|
||||
|
||||
|
@ -150,8 +149,10 @@ StatusScrollView {
|
|||
description: qsTr("This account will be where you receive your Owner token and will also be the account that pays the token minting gas fees.")
|
||||
}
|
||||
|
||||
// TO BE REMOVED: It will be removed with the new fees panel
|
||||
StatusEmojiAndColorComboBox {
|
||||
ColumnLayout {
|
||||
spacing: 11
|
||||
|
||||
AccountSelector {
|
||||
id: accountBox
|
||||
|
||||
readonly property string address: {
|
||||
|
@ -170,16 +171,12 @@ StatusScrollView {
|
|||
|
||||
currentIndex: (initIndex !== -1) ? initIndex : 0
|
||||
model: root.accounts
|
||||
type: StatusComboBox.Type.Secondary
|
||||
size: StatusComboBox.Size.Small
|
||||
implicitHeight: 44
|
||||
defaultAssetName: "filled-account"
|
||||
|
||||
onAddressChanged: {
|
||||
ownerToken.accountAddress = address
|
||||
tMasterToken.accountAddress = address
|
||||
|
||||
root.deployFeesRequested()
|
||||
requestFeeDelayTimer.restart()
|
||||
}
|
||||
control.onDisplayTextChanged: {
|
||||
ownerToken.accountName = control.displayText
|
||||
|
@ -187,6 +184,19 @@ StatusScrollView {
|
|||
}
|
||||
}
|
||||
|
||||
StatusBaseText {
|
||||
Layout.fillWidth: true
|
||||
|
||||
visible: !!root.feeErrorText
|
||||
horizontalAlignment: Text.AlignRight
|
||||
|
||||
font.pixelSize: Theme.tertiaryTextFontSize
|
||||
color: Theme.palette.dangerColor1
|
||||
text: root.feeErrorText
|
||||
wrapMode: Text.Wrap
|
||||
}
|
||||
}
|
||||
|
||||
CustomNetworkFilterRowComponent {
|
||||
id: networkSelector
|
||||
|
||||
|
@ -240,6 +250,8 @@ StatusScrollView {
|
|||
Layout.fillWidth: true
|
||||
Layout.topMargin: 4
|
||||
Layout.bottomMargin: Style.current.padding
|
||||
|
||||
enabled: root.feeText && !root.feeErrorText
|
||||
text: qsTr("Mint")
|
||||
|
||||
onClicked: root.mintClicked()
|
||||
|
@ -313,8 +325,15 @@ StatusScrollView {
|
|||
tMasterToken.chainName = network.chainName
|
||||
tMasterToken.chainIcon = network.iconUrl
|
||||
|
||||
root.deployFeesRequested()
|
||||
requestFeeDelayTimer.restart()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: requestFeeDelayTimer
|
||||
|
||||
interval: 500
|
||||
onTriggered: root.deployFeesRequested()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue