status-desktop/ui/imports/shared/popups/NoPermissionsToJoinPopup.qml
Lukáš Tinkl d9d6d90dc9 [Style] remove legacy Style and its themes
- legacy Style and ThemePalette removed
- moved and deduplicated font definitions into `Theme` (unrelated to a
color palette)
- `Style.current.foo` -> `Theme.foo`
- `Style.current.fooColor` -> `Theme.palette.fooColor`
- upgrade the imports to 5.15
- removed some mode dead components

Fixes #16514
2024-10-22 15:54:31 +02:00

57 lines
1.7 KiB
QML

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