2022-12-20 00:03:25 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
|
|
|
|
import AppLayouts.Chat.views.communities 1.0
|
|
|
|
import AppLayouts.Chat.stores 1.0
|
|
|
|
|
|
|
|
import Models 1.0
|
|
|
|
|
|
|
|
Pane {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
CommunityNewPermissionView {
|
|
|
|
|
|
|
|
store: CommunitiesStore {
|
2023-01-12 13:18:52 +00:00
|
|
|
readonly property var assetsModel: AssetsModel {}
|
2022-12-20 00:03:25 +00:00
|
|
|
readonly property var collectiblesModel: CollectiblesModel {}
|
|
|
|
readonly property var channelsModel: ChannelsModel {}
|
2023-01-23 15:51:12 +00:00
|
|
|
readonly property var permissionConflict: QtObject {
|
|
|
|
property bool exists: true
|
|
|
|
property string holdings: "1 ETH"
|
|
|
|
property string permissions: "View and Post"
|
|
|
|
property string channels: "#general"
|
|
|
|
|
|
|
|
}
|
2022-12-20 00:03:25 +00:00
|
|
|
|
|
|
|
function editPermission(index, holdings, permissions, channels, isPrivate) {
|
|
|
|
logs.logEvent("CommunitiesStore::editPermission - index: " + index)
|
|
|
|
}
|
|
|
|
|
|
|
|
function duplicatePermission(index) {
|
|
|
|
logs.logEvent("CommunitiesStore::duplicatePermission - index: " + index)
|
|
|
|
}
|
|
|
|
|
|
|
|
function removePermission(index) {
|
|
|
|
logs.logEvent("CommunitiesStore::removePermission - index: " + index)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
rootStore: QtObject {
|
|
|
|
readonly property QtObject chatCommunitySectionModule: QtObject {
|
|
|
|
readonly property var model: ChannelsModel {}
|
|
|
|
}
|
|
|
|
|
|
|
|
readonly property QtObject mainModuleInst: QtObject {
|
|
|
|
|
|
|
|
readonly property QtObject activeSection: QtObject {
|
|
|
|
readonly property string name: "Socks"
|
|
|
|
readonly property string image: ModelsData.icons.socks
|
|
|
|
readonly property color color: "red"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|