mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-14 00:27:40 +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
60 lines
1.3 KiB
QML
60 lines
1.3 KiB
QML
import QtQuick 2.14
|
|
import QtQuick.Controls 2.14
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import Storybook 1.0
|
|
import Models 1.0
|
|
|
|
import AppLayouts.Communities.popups 1.0
|
|
|
|
SplitView {
|
|
SplitView {
|
|
orientation: Qt.Vertical
|
|
SplitView.fillWidth: true
|
|
|
|
Item {
|
|
SplitView.fillWidth: true
|
|
SplitView.fillHeight: true
|
|
|
|
PopupBackground {
|
|
anchors.fill: parent
|
|
}
|
|
|
|
Button {
|
|
anchors.centerIn: parent
|
|
text: "Reopen"
|
|
|
|
onClicked: dialog.open()
|
|
}
|
|
|
|
CommunityTokenPermissionsPopup {
|
|
id: dialog
|
|
|
|
anchors.centerIn: parent
|
|
channelName: editor.channelName
|
|
viewOnlyHoldingsModel: editor.viewOnlyHoldingsModel
|
|
viewAndPostHoldingsModel: editor.viewAndPostHoldingsModel
|
|
moderateHoldingsModel: editor.moderateHoldingsModel
|
|
|
|
assetsModel: AssetsModel {}
|
|
collectiblesModel: CollectiblesModel {}
|
|
}
|
|
}
|
|
}
|
|
|
|
Pane {
|
|
SplitView.minimumWidth: 300
|
|
SplitView.preferredWidth: 300
|
|
|
|
JoinCommunityPermissionsEditor {
|
|
id: editor
|
|
|
|
isOnlyChannelPanelEditor: true
|
|
channelName: "#vip"
|
|
joinCommunity: false
|
|
}
|
|
}
|
|
}
|
|
|
|
|