59 lines
1.7 KiB
QML
59 lines
1.7 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
import QtQml.Models 2.14
|
|
|
|
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: Style.current.danger
|
|
onClicked: root.rejectButtonClicked(root.requestId, root.communityId)
|
|
}
|
|
}
|
|
}
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
spacing: Style.current.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)
|
|
font.pixelSize: 15
|
|
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)
|
|
font.pixelSize: 15
|
|
wrapMode: Text.WordWrap
|
|
color: Theme.palette.directColor1
|
|
Layout.fillWidth: true
|
|
}
|
|
}
|
|
}
|