2023-06-30 12:25:37 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
2024-04-17 13:25:45 +00:00
|
|
|
import mainui 1.0
|
2024-05-22 08:13:39 +00:00
|
|
|
import AppLayouts.stores 1.0 as AppLayoutStores
|
2023-06-30 12:25:37 +00:00
|
|
|
import AppLayouts.Communities.panels 1.0
|
|
|
|
|
2024-10-03 08:08:51 +00:00
|
|
|
import shared.stores 1.0 as SharedStores
|
2024-05-22 08:13:39 +00:00
|
|
|
|
2023-06-30 12:25:37 +00:00
|
|
|
SplitView {
|
|
|
|
id: root
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
|
2024-04-17 13:25:45 +00:00
|
|
|
Popups {
|
|
|
|
popupParent: root
|
2024-10-03 08:08:51 +00:00
|
|
|
sharedRootStore: SharedStores.RootStore {}
|
2024-05-22 08:13:39 +00:00
|
|
|
rootStore: AppLayoutStores.RootStore {}
|
2024-10-03 08:08:51 +00:00
|
|
|
communityTokensStore: SharedStores.CommunityTokensStore {}
|
2024-04-17 13:25:45 +00:00
|
|
|
}
|
|
|
|
|
2023-06-30 12:25:37 +00:00
|
|
|
OverviewSettingsPanel {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
name: communityEditor.name
|
|
|
|
description: communityEditor.description
|
|
|
|
logoImageData: communityEditor.image
|
|
|
|
color: communityEditor.color
|
2023-09-26 18:04:51 +00:00
|
|
|
bannerImageData: communityEditor.banner
|
2023-06-30 12:25:37 +00:00
|
|
|
|
2023-09-26 18:04:51 +00:00
|
|
|
isOwner: communityEditor.amISectionAdmin
|
2024-04-17 13:25:45 +00:00
|
|
|
isAdmin: ctrlIsAdmin.checked
|
|
|
|
isTokenMaster: ctrlIsTM.checked
|
|
|
|
|
|
|
|
editable: communityEditor.isCommunityEditable
|
2023-07-24 11:31:31 +00:00
|
|
|
communitySettingsDisabled: !editable
|
2023-09-26 18:04:51 +00:00
|
|
|
|
2023-10-31 20:40:00 +00:00
|
|
|
shardingEnabled: communityEditor.shardingEnabled
|
|
|
|
shardIndex: communityEditor.shardIndex
|
|
|
|
|
2023-09-28 10:09:47 +00:00
|
|
|
isPendingOwnershipRequest: pendingOwnershipSwitch.checked
|
2023-06-30 12:25:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Pane {
|
|
|
|
SplitView.minimumWidth: 300
|
|
|
|
SplitView.preferredWidth: 300
|
|
|
|
|
2024-04-17 13:25:45 +00:00
|
|
|
ScrollView {
|
|
|
|
anchors.fill: parent
|
|
|
|
contentWidth: availableWidth
|
|
|
|
|
|
|
|
CommunityInfoEditor {
|
2023-09-28 10:09:47 +00:00
|
|
|
id: communityEditor
|
|
|
|
|
2024-04-17 13:25:45 +00:00
|
|
|
Switch {
|
|
|
|
id: pendingOwnershipSwitch
|
|
|
|
text: "Pending transfer ownership request?"
|
|
|
|
}
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
id: ctrlIsAdmin
|
|
|
|
text: "Is admin?"
|
|
|
|
}
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
id: ctrlIsTM
|
|
|
|
text: "Is token master?"
|
|
|
|
}
|
2023-09-28 10:09:47 +00:00
|
|
|
}
|
2023-06-30 12:25:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Panels
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba⎜Desktop?type=design&node-id=31229-627216&mode=design&t=KoQOW7vmoNc7f41m-0
|