mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
0ab8a62896
- Renamed main `CommunitiesPortal` folder to `Communities`. - Created new `layouts` folder. - Moved layout files from chat to communities. - Created new `helpers` folder. - Moved helpers files from chat to communities. - Moved `controls/community` files from chat to communities `controls`. - Moved `panels/communities` files from chat to communities `panels`. - Moved `popups/community` files from chat to communities `popups`. - Moved `views/community` files from chat to communities `views`. - Moved `CommunityBanner` file from shared to `Communities/controls`. Only used in communities context. - Moved `CommunitySettingsView` and `CommunityColumnView` files from chat to communities `views`. - Moved `PermissionsStore.qml` file to `shared/stores`. - Updated imports. - Updated storybook. Part of #6204
66 lines
1.7 KiB
QML
66 lines
1.7 KiB
QML
import QtQuick 2.14
|
|
import QtQuick.Controls 2.14
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import StatusQ.Core 0.1
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import utils 1.0
|
|
|
|
Control {
|
|
id: root
|
|
|
|
property string holdings
|
|
property string permissions
|
|
property string channels
|
|
|
|
spacing: 8
|
|
|
|
QtObject {
|
|
id: d
|
|
|
|
property int iconSize: 20
|
|
}
|
|
|
|
contentItem: ColumnLayout {
|
|
spacing: 4
|
|
|
|
RowLayout {
|
|
spacing: root.spacing
|
|
|
|
StatusIcon {
|
|
Layout.preferredWidth: d.iconSize
|
|
Layout.preferredHeight: d.iconSize
|
|
Layout.alignment: Qt.AlignTop
|
|
color: Theme.palette.dangerColor1
|
|
icon: "warning"
|
|
}
|
|
StatusBaseText {
|
|
Layout.fillWidth: true
|
|
wrapMode: Text.Wrap
|
|
font.pixelSize: Style.current.primaryTextFontSize
|
|
color: Theme.palette.dangerColor1
|
|
font.bold: true
|
|
text: qsTr("Conflicts with existing permission:")
|
|
}
|
|
}
|
|
|
|
StatusBaseText {
|
|
Layout.leftMargin: root.spacing + d.iconSize
|
|
Layout.fillWidth: true
|
|
wrapMode: Text.Wrap
|
|
font.pixelSize: Style.current.primaryTextFontSize
|
|
font.bold: true
|
|
text: qsTr("\"Anyone who holds %1 can %2 in %3\"").arg(root.holdings).arg(root.permissions).arg(root.channels)
|
|
}
|
|
|
|
StatusBaseText {
|
|
Layout.leftMargin: root.spacing + d.iconSize
|
|
Layout.fillWidth: true
|
|
wrapMode: Text.Wrap
|
|
font.pixelSize: Style.current.primaryTextFontSize
|
|
text: qsTr("Edit permissions to resolve a conflict.")
|
|
}
|
|
}
|
|
}
|