status-desktop/ui/imports/shared/popups/NoPermissionsToJoinPopup.qml
Pascal Precht 5e965bcbb7 refactor: make accepting member requests to join async
This is necessary because with community token permissions, when owners
manually accept a request, we a) don't want to block the UI when the
users funds are check on chain and b) in case of insufficient funds,
we'll react with a modal that tells the owner that the user can't be
accepted.

All of that is done in this commit.
2023-03-23 14:11:04 +01:00

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
}
}
}