status-desktop/ui/app/AppLayouts/Communities/panels/NetworkWarningPanel.qml
Jonathan Rainville 8db0ac94f0
fix(networks): enable network before mint or airdrop (#15601)
Fixes #15507

Makes sure to enable the network where the owner token was minted before minting or airdroping a token.
This makes sure that the account selector shows the right balance and there is no ETH error before doing the transation
2024-07-22 09:52:44 -04:00

27 lines
586 B
QML

import QtQuick 2.15
import QtQuick.Layouts 1.15
import StatusQ.Core 0.1
import StatusQ.Controls 0.1
RowLayout {
id: root
property string networkThatIsNotActive
signal enableNetwork
spacing: 6
WarningPanel {
id: wantedNetworkNotActive
Layout.fillWidth: true
text: qsTr("The owner token is minted on a network that isn't selected. Click here to enable it:")
}
StatusButton {
text: qsTr("Enable %1").arg(root.networkThatIsNotActive)
Layout.alignment: Qt.AlignVCenter
onClicked: root.enableNetwork()
}
}