2023-06-01 21:23:43 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
2023-08-03 15:54:47 +00:00
|
|
|
import QtQuick.Layouts 1.15
|
2023-06-01 21:23:43 +00:00
|
|
|
|
2023-06-23 06:17:04 +00:00
|
|
|
import AppLayouts.Communities.panels 1.0
|
2023-06-01 21:23:43 +00:00
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
import Models 1.0
|
|
|
|
|
2023-08-03 15:54:47 +00:00
|
|
|
import utils 1.0
|
|
|
|
|
2023-06-01 21:23:43 +00:00
|
|
|
SplitView {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
Logs { id: logs }
|
|
|
|
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
|
|
|
TokenHoldersModel {
|
|
|
|
id: tokenHoldersModel
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
SortableTokenHoldersList {
|
|
|
|
id: holdersList
|
|
|
|
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.margins: 50
|
|
|
|
|
|
|
|
model: TokenHoldersProxyModel {
|
|
|
|
sourceModel: tokenHoldersModel
|
|
|
|
|
|
|
|
sortBy: holdersList.sortBy
|
2023-07-05 15:17:51 +00:00
|
|
|
sortOrder: holdersList.sortOrder ? Qt.DescendingOrder : Qt.AscendingOrder
|
2023-06-01 21:23:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
onClicked: logs.logEvent("holdersList.clicked: " + index)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
2023-08-03 15:54:47 +00:00
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Button {
|
|
|
|
text: "Set all remotely burn to completed"
|
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
for (let i = 0; i < tokenHoldersModel.count; i++) {
|
|
|
|
tokenHoldersModel.setProperty(
|
|
|
|
i, "remotelyDestructState",
|
|
|
|
Constants.ContractTransactionStatus.Completed)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: "Set all remotely burn to in progress"
|
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
for (let i = 0; i < tokenHoldersModel.count; i++) {
|
|
|
|
tokenHoldersModel.setProperty(
|
|
|
|
i, "remotelyDestructState",
|
|
|
|
Constants.ContractTransactionStatus.InProgress)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-01 21:23:43 +00:00
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Components
|