2023-07-18 12:39:38 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
2024-03-13 17:38:16 +00:00
|
|
|
import SortFilterProxyModel 0.2
|
|
|
|
|
2023-07-18 12:39:38 +00:00
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
|
|
|
|
import AppLayouts.Communities.views 1.0
|
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
import Models 1.0
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
|
|
|
|
Logs { id: logs }
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
|
|
|
Item {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
2023-07-26 22:39:13 +00:00
|
|
|
Timer {
|
|
|
|
id: feeCalculationTimer
|
|
|
|
|
|
|
|
interval: 2000
|
|
|
|
|
|
|
|
onTriggered: {
|
|
|
|
editOwnerTokenView.feeText = "0.0015 ETH ($75.43)"
|
|
|
|
editOwnerTokenView.isFeeLoading = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-18 12:39:38 +00:00
|
|
|
EditOwnerTokenView {
|
2023-07-26 22:39:13 +00:00
|
|
|
id: editOwnerTokenView
|
|
|
|
|
2023-07-18 12:39:38 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
anchors.margins: 50
|
|
|
|
|
|
|
|
communityName: communityName.text
|
|
|
|
communityLogo: doodles.checked ? ModelsData.collectibles.doodles : ModelsData.collectibles.mana
|
|
|
|
communityColor: color1.checked ? "#FFC4E9" : "#f44336"
|
2024-06-15 21:33:12 +00:00
|
|
|
ownerToken.chainId: 42161
|
2023-07-18 12:39:38 +00:00
|
|
|
|
2024-03-13 17:38:16 +00:00
|
|
|
flatNetworks: SortFilterProxyModel {
|
|
|
|
sourceModel: NetworksModel.flatNetworks
|
|
|
|
filters: ValueFilter { roleName: "isTest"; value: false }
|
|
|
|
}
|
2023-07-18 12:39:38 +00:00
|
|
|
accounts: WalletAccountsModel {}
|
2024-06-07 12:27:56 +00:00
|
|
|
ownerToken.accountAddress: "0x7F47C2e98a4BBf5487E6fb082eC2D9Ab0E6d8881"
|
2023-07-18 12:39:38 +00:00
|
|
|
|
|
|
|
onMintClicked: logs.logEvent("EditOwnerTokenView::onMintClicked")
|
2023-07-26 22:39:13 +00:00
|
|
|
|
2023-09-01 09:27:44 +00:00
|
|
|
Component.onCompleted: {
|
2023-07-26 22:39:13 +00:00
|
|
|
feeText = ""
|
|
|
|
feeErrorText = ""
|
|
|
|
isFeeLoading = true
|
|
|
|
|
|
|
|
feeCalculationTimer.restart()
|
|
|
|
}
|
2023-07-18 12:39:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 150
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Label {
|
|
|
|
text: "Community name:"
|
|
|
|
}
|
|
|
|
|
|
|
|
TextInput {
|
|
|
|
id: communityName
|
|
|
|
text: "Doodles"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
RadioButton {
|
|
|
|
id: color1
|
|
|
|
|
|
|
|
text: "Light pink"
|
|
|
|
checked: true
|
|
|
|
}
|
|
|
|
|
|
|
|
RadioButton {
|
|
|
|
text: "Orange"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
RadioButton {
|
|
|
|
id: doodles
|
|
|
|
text: "Doodles"
|
|
|
|
checked: true
|
|
|
|
}
|
|
|
|
|
|
|
|
RadioButton {
|
|
|
|
text: "Mana"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Views
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=34794-590207&mode=design&t=ZnwK9yenS5oSgwws-0
|