import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 import QtQml.Models 2.15 import utils 1.0 import StatusQ.Core 0.1 import StatusQ.Core.Theme 0.1 import StatusQ.Popups.Dialog 0.1 import StatusQ.Controls 0.1 StatusDialog { id: root width: 400 title: qsTr("Required assets not held") property string userName: "" property string communityName: "" property string communityId: "" property string requestId: "" signal rejectButtonClicked(string requestId, string communityId) footer: StatusDialogFooter { rightButtons: ObjectModel { StatusButton { text: qsTr("Reject") type: StatusBaseButton.Type.Danger icon.name: "close-circle" icon.color: Theme.palette.dangerColor1 onClicked: root.rejectButtonClicked(root.requestId, root.communityId) } } } ColumnLayout { anchors.fill: parent spacing: Theme.padding StatusBaseText { text: qsTr("%1 no longer holds the tokens required to join %2 in their wallet, so their request to join %2 must be rejected.").arg(root.userName).arg(root.communityName) wrapMode: Text.WordWrap color: Theme.palette.directColor1 Layout.fillWidth: true } StatusBaseText { text: qsTr("%1 can request to join %2 again in the future, when they have the tokens required to join %2 in their wallet.").arg(root.userName).arg(root.communityName) wrapMode: Text.WordWrap color: Theme.palette.directColor1 Layout.fillWidth: true } } }