feat(Communities): File renames
- Removed redundant `community` word in some files from: `controls`, `views`, `popups`, `helpers ` and `panels` folders. - Updated storybook. - Updated squish files. Closes #6204
This commit is contained in:
parent
0ab8a62896
commit
d763a09cac
|
@ -14,11 +14,11 @@ ListModel {
|
||||||
section: "Views"
|
section: "Views"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityNewPermissionView"
|
title: "EditPermissionView"
|
||||||
section: "Views"
|
section: "Views"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityNewAirdropView"
|
title: "EditAirdropView"
|
||||||
section: "Views"
|
section: "Views"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -34,7 +34,7 @@ ListModel {
|
||||||
section: "Views"
|
section: "Views"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityPermissionsView"
|
title: "PermissionsView"
|
||||||
section: "Views"
|
section: "Views"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -42,7 +42,7 @@ ListModel {
|
||||||
section: "Views"
|
section: "Views"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityNewTokenView"
|
title: "EditCommunityTokenView"
|
||||||
section: "Views"
|
section: "Views"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -50,7 +50,7 @@ ListModel {
|
||||||
section: "Views"
|
section: "Views"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityMintedTokensView"
|
title: "MintedTokensView"
|
||||||
section: "Views"
|
section: "Views"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -78,11 +78,11 @@ ListModel {
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityProfilePopupInviteFriendsPanel"
|
title: "ProfilePopupInviteFriendsPanel"
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityProfilePopupInviteMessagePanel"
|
title: "ProfilePopupInviteMessagePanel"
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -90,7 +90,7 @@ ListModel {
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityPermissionsSettingsPanel"
|
title: "PermissionsSettingsPanel"
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -102,7 +102,7 @@ ListModel {
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityColumnHeaderPanel"
|
title: "ColumnHeaderPanel"
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -114,11 +114,11 @@ ListModel {
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityMintTokensSettingsPanel"
|
title: "MintTokensSettingsPanel"
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityAirdropsSettingsPanel"
|
title: "AirdropsSettingsPanel"
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -198,7 +198,7 @@ ListModel {
|
||||||
section: "Popups"
|
section: "Popups"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityTokenPermissionsPopup"
|
title: "TokenPermissionsPopup"
|
||||||
section: "Popups"
|
section: "Popups"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -318,7 +318,7 @@ ListModel {
|
||||||
section: "Components"
|
section: "Components"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "CommunityPermissionsRow"
|
title: "PermissionsRow"
|
||||||
section: "Components"
|
section: "Components"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A479570&t=Qo2FwPRxvSxbluqB-1",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A479570&t=Qo2FwPRxvSxbluqB-1",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29384-568106&t=mAtmLENvQyRJqDGQ-0"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29384-568106&t=mAtmLENvQyRJqDGQ-0"
|
||||||
],
|
],
|
||||||
"CommunityMintTokensSettingsPanel": [
|
"MintTokensSettingsPanel": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22721%3A498587&t=v2Krj5iZQaSTK7Om-1",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22721%3A498587&t=v2Krj5iZQaSTK7Om-1",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A480877&t=v2Krj5iZQaSTK7Om-1",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A480877&t=v2Krj5iZQaSTK7Om-1",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22721%3A498811&t=v2Krj5iZQaSTK7Om-1",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22721%3A498811&t=v2Krj5iZQaSTK7Om-1",
|
||||||
|
@ -45,10 +45,10 @@
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-689073&t=mAtmLENvQyRJqDGQ-0",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-689073&t=mAtmLENvQyRJqDGQ-0",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29437-599353&t=mAtmLENvQyRJqDGQ-0"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29437-599353&t=mAtmLENvQyRJqDGQ-0"
|
||||||
],
|
],
|
||||||
"CommunityMintedTokensView": [
|
"MintedTokensView": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A479136&t=zs22ORYUVDYpqubQ-1"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A479136&t=zs22ORYUVDYpqubQ-1"
|
||||||
],
|
],
|
||||||
"CommunityNewAirdropView": [
|
"EditAirdropView": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22602-495563&t=9dIP8Sji2UlfhsEs-0",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22602-495563&t=9dIP8Sji2UlfhsEs-0",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22628-495258&t=9dIP8Sji2UlfhsEs-0",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22628-495258&t=9dIP8Sji2UlfhsEs-0",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22628-496145&t=9dIP8Sji2UlfhsEs-0",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22628-496145&t=9dIP8Sji2UlfhsEs-0",
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22647-501014&t=9dIP8Sji2UlfhsEs-0",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22647-501014&t=9dIP8Sji2UlfhsEs-0",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22647-499051&t=kHAcE8WSCyGqhWSH-0"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22647-499051&t=kHAcE8WSCyGqhWSH-0"
|
||||||
],
|
],
|
||||||
"CommunityNewTokenView": [
|
"EditCommunityTokenView": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A480877&t=Qo2FwPRxvSxbluqB-1",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A480877&t=Qo2FwPRxvSxbluqB-1",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=26601%3A518245&t=Qo2FwPRxvSxbluqB-1",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=26601%3A518245&t=Qo2FwPRxvSxbluqB-1",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22721%3A498811&t=Qo2FwPRxvSxbluqB-1",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22721%3A498811&t=Qo2FwPRxvSxbluqB-1",
|
||||||
|
@ -64,26 +64,26 @@
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29423%3A593514&t=g40TADKO0p93G4r0-1"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29423%3A593514&t=g40TADKO0p93G4r0-1"
|
||||||
|
|
||||||
],
|
],
|
||||||
"CommunityNewPermissionView": [
|
"EditPermissionView": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22253%3A486103&t=JrCIfks1zVzsk3vn-0"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22253%3A486103&t=JrCIfks1zVzsk3vn-0"
|
||||||
],
|
],
|
||||||
"CommunityPermissionsSettingsPanel": [
|
"PermissionsSettingsPanel": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2992%3A367890&t=7gqqAFbdG5KrPOmn-0",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2992%3A367890&t=7gqqAFbdG5KrPOmn-0",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22137%3A484809&t=7gqqAFbdG5KrPOmn-0",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22137%3A484809&t=7gqqAFbdG5KrPOmn-0",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22813%3A497277&t=7gqqAFbdG5KrPOmn-0"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22813%3A497277&t=7gqqAFbdG5KrPOmn-0"
|
||||||
],
|
],
|
||||||
"CommunityPermissionsView": [
|
"PermissionsView": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22813%3A497277&t=7gqqAFbdG5KrPOmn-0"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22813%3A497277&t=7gqqAFbdG5KrPOmn-0"
|
||||||
],
|
],
|
||||||
"ChatPermissionQualificationPanel": [
|
"ChatPermissionQualificationPanel": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2698%3A375926&t=iIeFeGOBx5BbbYJa-0"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2698%3A375926&t=iIeFeGOBx5BbbYJa-0"
|
||||||
],
|
],
|
||||||
"CommunityProfilePopupInviteFriendsPanel": [
|
"ProfilePopupInviteFriendsPanel": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2927%3A343592",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2927%3A343592",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2990%3A353179",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2990%3A353179",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2927%3A344073"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2927%3A344073"
|
||||||
],
|
],
|
||||||
"CommunityProfilePopupInviteMessagePanel": [
|
"ProfilePopupInviteMessagePanel": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=4291%3A385536",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=4291%3A385536",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=4295%3A385958"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=4295%3A385958"
|
||||||
],
|
],
|
||||||
|
@ -206,7 +206,7 @@
|
||||||
"DerivationPathInput": [
|
"DerivationPathInput": [
|
||||||
"https://www.figma.com/file/FkFClTCYKf83RJWoifWgoX/Wallet-v2?node-id=12272%3A269692&t=YiipgcxOhdOvqprP-0"
|
"https://www.figma.com/file/FkFClTCYKf83RJWoifWgoX/Wallet-v2?node-id=12272%3A269692&t=YiipgcxOhdOvqprP-0"
|
||||||
],
|
],
|
||||||
"CommunityPermissionsRow": [
|
"PermissionsRow": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=28570-546277&t=PVEC7ehRew4RnGFa-0",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=28570-546277&t=PVEC7ehRew4RnGFa-0",
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=8159%3A416159&t=bTEq7jsSZT0nfC4y-1",
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=8159%3A416159&t=bTEq7jsSZT0nfC4y-1",
|
||||||
"https://www.figma.com/file/WQZcp6S0EnzxdTL4taoKDv/Design-System-for-Mobile?node-id=17582-215241&t=8cRmw5jIlzUtfJbY-0"
|
"https://www.figma.com/file/WQZcp6S0EnzxdTL4taoKDv/Design-System-for-Mobile?node-id=17582-215241&t=8cRmw5jIlzUtfJbY-0"
|
||||||
|
|
|
@ -70,8 +70,8 @@ SplitView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
active: globalUtilsReady && mainModuleReady
|
active: globalUtilsReady && mainModuleReady
|
||||||
|
|
||||||
sourceComponent: CommunityAirdropsSettingsPanel {
|
sourceComponent: AirdropsSettingsPanel {
|
||||||
id: communityAirdropsSettingsPanel
|
id: airdropsSettingsPanel
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: 50
|
anchors.topMargin: 50
|
||||||
assetsModel: AssetsModel {}
|
assetsModel: AssetsModel {}
|
||||||
|
@ -115,7 +115,7 @@ SplitView {
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Qt.callLater(() => communityAirdropsSettingsPanel.collectiblesModel = this)
|
Qt.callLater(() => airdropsSettingsPanel.collectiblesModel = this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,13 +158,21 @@ SplitView {
|
||||||
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Qt.callLater(() => communityAirdropsSettingsPanel.assetsModel = this)
|
Qt.callLater(() => airdropsSettingsPanel.assetsModel = this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
membersModel: UsersModel {}
|
membersModel: UsersModel {}
|
||||||
|
|
||||||
onAirdropClicked: logs.logEvent("CommunityAirdropsSettingsPanel::onAirdropClicked")
|
communityDetails: QtObject {
|
||||||
|
readonly property string name: "Socks"
|
||||||
|
readonly property string id: "SOCKS"
|
||||||
|
readonly property string image: ModelsData.icons.socks
|
||||||
|
readonly property string color: "red"
|
||||||
|
readonly property bool owner: true
|
||||||
|
}
|
||||||
|
|
||||||
|
onAirdropClicked: logs.logEvent("AirdropsSettingsPanel::onAirdropClicked")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -38,7 +38,7 @@ SplitView {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
color: Theme.palette.baseColor4
|
color: Theme.palette.baseColor4
|
||||||
|
|
||||||
CommunityColumnHeaderPanel {
|
ColumnHeaderPanel {
|
||||||
id: communityColumnHeader
|
id: communityColumnHeader
|
||||||
|
|
||||||
width: widthSlider.value
|
width: widthSlider.value
|
||||||
|
@ -49,9 +49,9 @@ SplitView {
|
||||||
color: d.color
|
color: d.color
|
||||||
amISectionAdmin: d.amISectionAdmin
|
amISectionAdmin: d.amISectionAdmin
|
||||||
openCreateChat: false
|
openCreateChat: false
|
||||||
onInfoButtonClicked: logs.logEvent("CommunityColumnHeaderPanel::onInfoButtonClicked()")
|
onInfoButtonClicked: logs.logEvent("ColumnHeaderPanel::onInfoButtonClicked()")
|
||||||
onAdHocChatButtonClicked: {
|
onAdHocChatButtonClicked: {
|
||||||
logs.logEvent("CommunityColumnHeaderPanel::onAdHocChatButtonClicked(): " + openCreateChat.toString())
|
logs.logEvent("ColumnHeaderPanel::onAdHocChatButtonClicked(): " + openCreateChat.toString())
|
||||||
openCreateChat = !openCreateChat
|
openCreateChat = !openCreateChat
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -149,8 +149,8 @@ SplitView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
active: globalUtilsReady && mainModuleReady
|
active: globalUtilsReady && mainModuleReady
|
||||||
|
|
||||||
sourceComponent: CommunityNewAirdropView {
|
sourceComponent: EditAirdropView {
|
||||||
id: communityNewAirdropView
|
id: editAirdropView
|
||||||
|
|
||||||
CollectiblesModel {
|
CollectiblesModel {
|
||||||
id: collectiblesModel
|
id: collectiblesModel
|
||||||
|
@ -198,7 +198,7 @@ SplitView {
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Qt.callLater(() => communityNewAirdropView.collectiblesModel = this)
|
Qt.callLater(() => editAirdropView.collectiblesModel = this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,22 +241,29 @@ SplitView {
|
||||||
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Qt.callLater(() => communityNewAirdropView.assetsModel = this)
|
Qt.callLater(() => editAirdropView.assetsModel = this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assetsModel: ListModel {}
|
assetsModel: AssetsModel {}
|
||||||
collectiblesModel: ListModel {}
|
collectiblesModel: CollectiblesModel {}
|
||||||
membersModel: members
|
membersModel: members
|
||||||
|
communityDetails: QtObject {
|
||||||
|
readonly property string name: "Socks"
|
||||||
|
readonly property string id: "SOCKS"
|
||||||
|
readonly property string image: ModelsData.icons.socks
|
||||||
|
readonly property string color: "red"
|
||||||
|
readonly property bool owner: true
|
||||||
|
}
|
||||||
|
|
||||||
onAirdropClicked: {
|
onAirdropClicked: {
|
||||||
logs.logEvent("CommunityNewAirdropView::airdropClicked",
|
logs.logEvent("EditAirdropView::airdropClicked",
|
||||||
["airdropTokens", "addresses", "membersPubKeys"],
|
["airdropTokens", "addresses", "membersPubKeys"],
|
||||||
arguments)
|
arguments)
|
||||||
}
|
}
|
||||||
|
|
||||||
onAirdropFeesRequested: {
|
onAirdropFeesRequested: {
|
||||||
logs.logEvent("CommunityNewAirdropView::airdropFeesRequested",
|
logs.logEvent("EditAirdropView::airdropFeesRequested",
|
||||||
["contractKeysAndAmounts", "addresses"],
|
["contractKeysAndAmounts", "addresses"],
|
||||||
arguments)
|
arguments)
|
||||||
|
|
|
@ -24,7 +24,7 @@ SplitView {
|
||||||
SplitView.fillWidth: true
|
SplitView.fillWidth: true
|
||||||
SplitView.fillHeight: true
|
SplitView.fillHeight: true
|
||||||
|
|
||||||
CommunityNewTokenView {
|
EditCommunityTokenView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 50
|
anchors.margins: 50
|
||||||
isAssetView: isAssetBox.checked
|
isAssetView: isAssetBox.checked
|
||||||
|
@ -36,7 +36,7 @@ SplitView {
|
||||||
accounts: WalletAccountsModel {}
|
accounts: WalletAccountsModel {}
|
||||||
tokensModel: isAssetBox.checked ? MintedTokensModel.mintedAssetsModel : MintedTokensModel.mintedCollectiblesModel
|
tokensModel: isAssetBox.checked ? MintedTokensModel.mintedAssetsModel : MintedTokensModel.mintedCollectiblesModel
|
||||||
|
|
||||||
onPreviewClicked: logs.logEvent("CommunityNewTokenView::previewClicked")
|
onPreviewClicked: logs.logEvent("EditCommunityTokenView::previewClicked")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,8 +17,8 @@ SplitView {
|
||||||
SplitView.fillWidth: true
|
SplitView.fillWidth: true
|
||||||
SplitView.fillHeight: true
|
SplitView.fillHeight: true
|
||||||
|
|
||||||
CommunityNewPermissionView {
|
EditPermissionView {
|
||||||
id: communityNewPermissionView
|
id: editPermissionView
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ SplitView {
|
||||||
}
|
}
|
||||||
|
|
||||||
onCreatePermissionClicked: {
|
onCreatePermissionClicked: {
|
||||||
logs.logEvent("CommunityNewPermissionView::onCreatePermissionClicked")
|
logs.logEvent("EditPermissionView::onCreatePermissionClicked")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,11 +94,11 @@ SplitView {
|
||||||
Button {
|
Button {
|
||||||
text: "Reset changes"
|
text: "Reset changes"
|
||||||
|
|
||||||
onClicked: communityNewPermissionView.resetChanges()
|
onClicked: editPermissionView.resetChanges()
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "Is dirty: " + communityNewPermissionView.dirty
|
text: "Is dirty: " + editPermissionView.dirty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -6,8 +6,6 @@ import StatusQ.Controls 0.1
|
||||||
import StatusQ.Core.Theme 0.1
|
import StatusQ.Core.Theme 0.1
|
||||||
import StatusQ.Components 0.1
|
import StatusQ.Components 0.1
|
||||||
|
|
||||||
import AppLayouts.Communities.views 1.0
|
|
||||||
|
|
||||||
import Storybook 1.0
|
import Storybook 1.0
|
||||||
import Models 1.0
|
import Models 1.0
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ SplitView {
|
||||||
SplitView.fillHeight: true
|
SplitView.fillHeight: true
|
||||||
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
||||||
|
|
||||||
CommunityMintTokensSettingsPanel {
|
MintTokensSettingsPanel {
|
||||||
id: panel
|
id: panel
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
|
@ -24,11 +24,11 @@ SplitView {
|
||||||
SplitView.fillWidth: true
|
SplitView.fillWidth: true
|
||||||
SplitView.fillHeight: true
|
SplitView.fillHeight: true
|
||||||
|
|
||||||
CommunityMintedTokensView {
|
MintedTokensView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 50
|
anchors.margins: 50
|
||||||
model: MintedTokensModel.mintedTokensModel
|
model: MintedTokensModel.mintedTokensModel
|
||||||
onItemClicked: logs.logEvent("CommunityMintedTokensView::itemClicked --> " + tokenKey)
|
onItemClicked: logs.logEvent("MintedTokensView::itemClicked --> " + tokenKey)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ SplitView {
|
||||||
text: "1 permission:"
|
text: "1 permission:"
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityPermissionsRow {
|
PermissionsRow {
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||||
Layout.bottomMargin: spacing
|
Layout.bottomMargin: spacing
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ SplitView {
|
||||||
text: "2 short permissions:"
|
text: "2 short permissions:"
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityPermissionsRow {
|
PermissionsRow {
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||||
Layout.bottomMargin: spacing
|
Layout.bottomMargin: spacing
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ SplitView {
|
||||||
text: "2 long permissions:"
|
text: "2 long permissions:"
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityPermissionsRow {
|
PermissionsRow {
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||||
Layout.bottomMargin: spacing
|
Layout.bottomMargin: spacing
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ SplitView {
|
||||||
text: "Three short permissions:"
|
text: "Three short permissions:"
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityPermissionsRow {
|
PermissionsRow {
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||||
Layout.bottomMargin: spacing
|
Layout.bottomMargin: spacing
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ SplitView {
|
||||||
text: "More than 2 permissions with short 1st and 2nd ones:"
|
text: "More than 2 permissions with short 1st and 2nd ones:"
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityPermissionsRow {
|
PermissionsRow {
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||||
Layout.bottomMargin: spacing
|
Layout.bottomMargin: spacing
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ SplitView {
|
||||||
text: "5 permissions - long ones"
|
text: "5 permissions - long ones"
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityPermissionsRow {
|
PermissionsRow {
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
||||||
Layout.preferredHeight: heighSliderEditor.value
|
Layout.preferredHeight: heighSliderEditor.value
|
||||||
Layout.bottomMargin: spacing
|
Layout.bottomMargin: spacing
|
|
@ -66,7 +66,7 @@ SplitView {
|
||||||
SplitView.fillHeight: true
|
SplitView.fillHeight: true
|
||||||
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
||||||
|
|
||||||
CommunityPermissionsSettingsPanel {
|
PermissionsSettingsPanel {
|
||||||
id: communityPermissionsSettingsPanel
|
id: communityPermissionsSettingsPanel
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
|
@ -22,7 +22,7 @@ SplitView {
|
||||||
SplitView.fillHeight: true
|
SplitView.fillHeight: true
|
||||||
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
||||||
|
|
||||||
CommunityPermissionsView {
|
PermissionsView {
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
margins: 50
|
margins: 50
|
||||||
|
@ -53,7 +53,7 @@ SplitView {
|
||||||
}
|
}
|
||||||
|
|
||||||
function log(method, index) {
|
function log(method, index) {
|
||||||
logs.logEvent(`CommunityPermissionsView::${method} - index: ${index}`)
|
logs.logEvent(`PermissionsView::${method} - index: ${index}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
onEditPermissionRequested: log("editPermissionRequested", index)
|
onEditPermissionRequested: log("editPermissionRequested", index)
|
|
@ -51,7 +51,7 @@ Item {
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
active: globalUtilsReady && mainModuleReady
|
active: globalUtilsReady && mainModuleReady
|
||||||
sourceComponent: CommunityProfilePopupInviteFriendsPanel {
|
sourceComponent: ProfilePopupInviteFriendsPanel {
|
||||||
id: panel
|
id: panel
|
||||||
|
|
||||||
community: ({ id: "communityId" })
|
community: ({ id: "communityId" })
|
|
@ -60,7 +60,7 @@ Item {
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
sourceComponent: CommunityProfilePopupInviteMessagePanel {
|
sourceComponent: ProfilePopupInviteMessagePanel {
|
||||||
id: panel
|
id: panel
|
||||||
|
|
||||||
contactsStore: QtObject {
|
contactsStore: QtObject {
|
|
@ -27,7 +27,7 @@ SplitView {
|
||||||
onClicked: dialog.open()
|
onClicked: dialog.open()
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityTokenPermissionsPopup {
|
TokenPermissionsPopup {
|
||||||
id: dialog
|
id: dialog
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
|
@ -79,16 +79,16 @@ communitySettings_Community_LetterIdenticon = {"container": communitySettings_Co
|
||||||
communitySettings_EditCommunity_ScrollView = {"container": statusDesktop_mainWindow, "objectName": "communityEditPanelScrollView", "type": "StatusScrollView", "visible": True}
|
communitySettings_EditCommunity_ScrollView = {"container": statusDesktop_mainWindow, "objectName": "communityEditPanelScrollView", "type": "StatusScrollView", "visible": True}
|
||||||
communitySettings_EditCommunity_Name_Input = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityNameInput", "type": "TextEdit", "visible": True}
|
communitySettings_EditCommunity_Name_Input = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityNameInput", "type": "TextEdit", "visible": True}
|
||||||
communitySettings_EditCommunity_Description_Input = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityDescriptionInput", "type": "TextEdit", "visible": True}
|
communitySettings_EditCommunity_Description_Input = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityDescriptionInput", "type": "TextEdit", "visible": True}
|
||||||
communitySettings_EditCommunity_ColorPicker_Button = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityColorPicker", "type": "CommunityColorPicker", "visible": True}
|
communitySettings_EditCommunity_ColorPicker_Button = {"container": communitySettings_EditCommunity_ScrollView, "objectName": "editCommunityColorPicker", "type": "ColorPicker", "visible": True}
|
||||||
|
|
||||||
# Community color popup:
|
# Community color popup:
|
||||||
communitySettings_ColorPanel_HexColor_Input = {"container": statusDesktop_mainWindow_overlay, "objectName": "communityColorPanelHexInput", "type": "TextEdit", "visible": True}
|
communitySettings_ColorPanel_HexColor_Input = {"container": statusDesktop_mainWindow_overlay, "objectName": "communityColorPanelHexInput", "type": "TextEdit", "visible": True}
|
||||||
communitySettings_SaveColor_Button = {"container": statusDesktop_mainWindow_overlay, "objectName": "communityColorPanelSelectColorButton", "type": "StatusButton", "visible": True}
|
communitySettings_SaveColor_Button = {"container": statusDesktop_mainWindow_overlay, "objectName": "communityColorPanelSelectColorButton", "type": "StatusButton", "visible": True}
|
||||||
|
|
||||||
# Community Overview
|
# Community Overview
|
||||||
communityOverview_Back_up_Banner = {"container": statusDesktop_mainWindow, "objectName": "backUpBanner", "type": "CommunityBanner", "visible": True}
|
communityOverview_Back_up_Banner = {"container": statusDesktop_mainWindow, "objectName": "backUpBanner", "type": "BannerPanel", "visible": True}
|
||||||
communityOverview_Back_up_StatusButton = {"container": communityOverview_Back_up_Banner, "objectName": "communityBannerButton", "type": "StatusButton", "visible": True}
|
communityOverview_Back_up_StatusButton = {"container": communityOverview_Back_up_Banner, "objectName": "communityBannerButton", "type": "StatusButton", "visible": True}
|
||||||
communityOverview_Airdrop_Tokens_Banner = {"container": statusDesktop_mainWindow, "objectName": "airdropBanner", "type": "CommunityBanner", "visible": True}
|
communityOverview_Airdrop_Tokens_Banner = {"container": statusDesktop_mainWindow, "objectName": "airdropBanner", "type": "BannerPanel", "visible": True}
|
||||||
communityOverview_Airdrop_Tokens_StatusButton = {"container": communityOverview_Airdrop_Tokens_Banner, "objectName": "communityBannerButton", "type": "StatusButton", "visible": True}
|
communityOverview_Airdrop_Tokens_StatusButton = {"container": communityOverview_Airdrop_Tokens_Banner, "objectName": "communityBannerButton", "type": "StatusButton", "visible": True}
|
||||||
transferOwnerShipTextEdit = {"container": statusDesktop_mainWindow_overlay, "id": "edit", "type": "TextEdit", "unnamed": 1, "visible": True}
|
transferOwnerShipTextEdit = {"container": statusDesktop_mainWindow_overlay, "id": "edit", "type": "TextEdit", "unnamed": 1, "visible": True}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ communitiesPortalLayoutContainer_createCommunityButton_StatusButton = {"containe
|
||||||
navBarListView_All_Community_Buttons = {"checkable": True, "container": mainWindow_communityNavBarListView_ListView, "objectName": "CommunityNavBarButton", "type": "StatusNavBarTabButton"}
|
navBarListView_All_Community_Buttons = {"checkable": True, "container": mainWindow_communityNavBarListView_ListView, "objectName": "CommunityNavBarButton", "type": "StatusNavBarTabButton"}
|
||||||
|
|
||||||
# Create community intermediate popup:
|
# Create community intermediate popup:
|
||||||
createCommunity_banner = {"container": statusDesktop_mainWindow_overlay, "objectName": "createCommunityBanner", "type": "CommunityBanner", "visible": True}
|
createCommunity_banner = {"container": statusDesktop_mainWindow_overlay, "objectName": "createCommunityBanner", "type": "BannerPanel", "visible": True}
|
||||||
createCommunity_bannerButton = {"container": createCommunity_banner, "objectName": "communityBannerButton", "type": "StatusButton", "visible": True}
|
createCommunity_bannerButton = {"container": createCommunity_banner, "objectName": "communityBannerButton", "type": "StatusButton", "visible": True}
|
||||||
|
|
||||||
# Create community popup:
|
# Create community popup:
|
||||||
|
|
|
@ -142,7 +142,7 @@ StatusSectionLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityTagsRow {
|
TagsRow {
|
||||||
id: communityTags
|
id: communityTags
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ StatusSectionLayout {
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
spacing: 20
|
spacing: 20
|
||||||
CommunityBanner {
|
BannerPanel {
|
||||||
objectName: "createCommunityBanner"
|
objectName: "createCommunityBanner"
|
||||||
text: qsTr("Create a new Status community")
|
text: qsTr("Create a new Status community")
|
||||||
buttonText: qsTr("Create new")
|
buttonText: qsTr("Create new")
|
||||||
|
@ -211,7 +211,7 @@ StatusSectionLayout {
|
||||||
Global.createCommunityPopupRequested(false /*isDiscordImport*/)
|
Global.createCommunityPopupRequested(false /*isDiscordImport*/)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CommunityBanner {
|
BannerPanel {
|
||||||
readonly property bool importInProgress: root.communitiesStore.discordImportInProgress && !root.communitiesStore.discordImportCancelled
|
readonly property bool importInProgress: root.communitiesStore.discordImportInProgress && !root.communitiesStore.discordImportCancelled
|
||||||
text: importInProgress ?
|
text: importInProgress ?
|
||||||
qsTr("'%1' import in progress...").arg(root.communitiesStore.discordImportCommunityName) :
|
qsTr("'%1' import in progress...").arg(root.communitiesStore.discordImportCommunityName) :
|
||||||
|
|
|
@ -333,8 +333,8 @@ StatusDropdown {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if(d.extendedDeepNavigation)
|
if(d.extendedDeepNavigation)
|
||||||
listPanel.goForward(d.currentItemKey,
|
listPanel.goForward(d.currentItemKey,
|
||||||
CommunityPermissionsHelpers.getTokenNameByKey(root.collectiblesModel, d.currentItemKey),
|
PermissionsHelpers.getTokenNameByKey(root.collectiblesModel, d.currentItemKey),
|
||||||
CommunityPermissionsHelpers.getTokenIconByKey(root.collectiblesModel, d.currentItemKey),
|
PermissionsHelpers.getTokenIconByKey(root.collectiblesModel, d.currentItemKey),
|
||||||
d.currentSubItems)
|
d.currentSubItems)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -367,9 +367,9 @@ StatusDropdown {
|
||||||
|
|
||||||
readonly property real effectiveAmount: amountValid ? amount : 0
|
readonly property real effectiveAmount: amountValid ? amount : 0
|
||||||
|
|
||||||
tokenName: CommunityPermissionsHelpers.getTokenNameByKey(root.assetsModel, root.assetKey)
|
tokenName: PermissionsHelpers.getTokenNameByKey(root.assetsModel, root.assetKey)
|
||||||
tokenShortName: CommunityPermissionsHelpers.getTokenShortNameByKey(root.assetsModel, root.assetKey)
|
tokenShortName: PermissionsHelpers.getTokenShortNameByKey(root.assetsModel, root.assetKey)
|
||||||
tokenImage: CommunityPermissionsHelpers.getTokenIconByKey(root.assetsModel, root.assetKey)
|
tokenImage: PermissionsHelpers.getTokenIconByKey(root.assetsModel, root.assetKey)
|
||||||
amountText: d.assetAmountText
|
amountText: d.assetAmountText
|
||||||
tokenCategoryText: qsTr("Asset")
|
tokenCategoryText: qsTr("Asset")
|
||||||
addOrUpdateButtonEnabled: d.assetsReady
|
addOrUpdateButtonEnabled: d.assetsReady
|
||||||
|
@ -377,7 +377,7 @@ StatusDropdown {
|
||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
const asset = CommunityPermissionsHelpers.getTokenByKey(
|
const asset = PermissionsHelpers.getTokenByKey(
|
||||||
root.assetsModel,
|
root.assetsModel,
|
||||||
root.assetKey)
|
root.assetKey)
|
||||||
|
|
||||||
|
@ -429,10 +429,10 @@ StatusDropdown {
|
||||||
|
|
||||||
readonly property real effectiveAmount: amountValid ? amount : 0
|
readonly property real effectiveAmount: amountValid ? amount : 0
|
||||||
|
|
||||||
tokenName: CommunityPermissionsHelpers.getTokenNameByKey(root.collectiblesModel, root.collectibleKey)
|
tokenName: PermissionsHelpers.getTokenNameByKey(root.collectiblesModel, root.collectibleKey)
|
||||||
tokenShortName: ""
|
tokenShortName: ""
|
||||||
tokenImage: CommunityPermissionsHelpers.getTokenIconByKey(root.collectiblesModel, root.collectibleKey)
|
tokenImage: PermissionsHelpers.getTokenIconByKey(root.collectiblesModel, root.collectibleKey)
|
||||||
tokenAmount: CommunityPermissionsHelpers.getTokenAmountByKey(root.collectiblesModel, root.collectibleKey)
|
tokenAmount: PermissionsHelpers.getTokenAmountByKey(root.collectiblesModel, root.collectibleKey)
|
||||||
amountText: d.collectibleAmountText
|
amountText: d.collectibleAmountText
|
||||||
tokenCategoryText: qsTr("Collectible")
|
tokenCategoryText: qsTr("Collectible")
|
||||||
addOrUpdateButtonEnabled: d.collectiblesReady
|
addOrUpdateButtonEnabled: d.collectiblesReady
|
||||||
|
@ -441,7 +441,7 @@ StatusDropdown {
|
||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
const collectible = CommunityPermissionsHelpers.getTokenByKey(
|
const collectible = PermissionsHelpers.getTokenByKey(
|
||||||
root.collectiblesModel,
|
root.collectiblesModel,
|
||||||
root.collectibleKey)
|
root.collectibleKey)
|
||||||
|
|
||||||
|
|
|
@ -293,7 +293,7 @@ StatusDropdown {
|
||||||
Component {
|
Component {
|
||||||
id: communityCategoryDelegate
|
id: communityCategoryDelegate
|
||||||
|
|
||||||
CommunityCategoryListItem {
|
CategoryListItem {
|
||||||
title: model.name
|
title: model.name
|
||||||
|
|
||||||
checkState: {
|
checkState: {
|
||||||
|
|
|
@ -11,17 +11,17 @@ import StatusQ.Controls 0.1
|
||||||
import AppLayouts.Communities.views 1.0
|
import AppLayouts.Communities.views 1.0
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmltype CommunityPermissionsRow
|
\qmltype PermissionsRow
|
||||||
\inherits Control
|
\inherits Control
|
||||||
\inqmlmodule AppLayouts.Communities.controls 1.0
|
\inqmlmodule AppLayouts.Communities.controls 1.0
|
||||||
\brief It is a permissions row control that provides information about community tokens permissions. Inherits \l{https://doc.qt.io/qt-5/qml-qtquick-controls2-control.html}{Control}.
|
\brief It is a permissions row control that provides information about community tokens permissions. Inherits \l{https://doc.qt.io/qt-5/qml-qtquick-controls2-control.html}{Control}.
|
||||||
|
|
||||||
The \c CommunityPermissionsRow is the token permissions representation row component.
|
The \c PermissionsRow is the token permissions representation row component.
|
||||||
It has different ui abreviations / permutations depending on the tokens and permissons the permissions model provides.
|
It has different ui abreviations / permutations depending on the tokens and permissons the permissions model provides.
|
||||||
|
|
||||||
Example of how to use it:
|
Example of how to use it:
|
||||||
\qml
|
\qml
|
||||||
CommunityPermissionsRow {
|
PermissionsRow {
|
||||||
model: root.permissionsModel
|
model: root.permissionsModel
|
||||||
assetsModel: root.assetsModel
|
assetsModel: root.assetsModel
|
||||||
collectiblesModel: root.collectiblesModel
|
collectiblesModel: root.collectiblesModel
|
||||||
|
@ -38,61 +38,61 @@ Control {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty var CommunityPermissionsRow::model
|
\qmlproperty var PermissionsRow::model
|
||||||
This property holds the permissions model with expected roles: [ holdingsModel [ roles: key] ].
|
This property holds the permissions model with expected roles: [ holdingsModel [ roles: key] ].
|
||||||
*/
|
*/
|
||||||
property var model
|
property var model
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty var CommunityPermissionsRow::assetsModel
|
\qmlproperty var PermissionsRow::assetsModel
|
||||||
This property holds the global assets model.
|
This property holds the global assets model.
|
||||||
*/
|
*/
|
||||||
property var assetsModel
|
property var assetsModel
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty var CommunityPermissionsRow::collectiblesModel
|
\qmlproperty var PermissionsRow::collectiblesModel
|
||||||
This property holds the global collectibles model.
|
This property holds the global collectibles model.
|
||||||
*/
|
*/
|
||||||
property var collectiblesModel
|
property var collectiblesModel
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty bool CommunityPermissionsRow::requirementsMet
|
\qmlproperty bool PermissionsRow::requirementsMet
|
||||||
This property holds if the token requirements are met in case the community requires permissions.
|
This property holds if the token requirements are met in case the community requires permissions.
|
||||||
*/
|
*/
|
||||||
property bool requirementsMet: false
|
property bool requirementsMet: false
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty int CommunityPermissionsRow::overlapping
|
\qmlproperty int PermissionsRow::overlapping
|
||||||
This property allows customizing the overlapping distance between elements.
|
This property allows customizing the overlapping distance between elements.
|
||||||
*/
|
*/
|
||||||
property int overlapping: 8
|
property int overlapping: 8
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty int CommunityPermissionsRow::overlappingBorder
|
\qmlproperty int PermissionsRow::overlappingBorder
|
||||||
This property allows customizing the overlapping border between elements.
|
This property allows customizing the overlapping border between elements.
|
||||||
*/
|
*/
|
||||||
property int overlappingBorder: 1
|
property int overlappingBorder: 1
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty color CommunityPermissionsRow::backgroundColor
|
\qmlproperty color PermissionsRow::backgroundColor
|
||||||
This property holds the control background color, including border color of overlapped elements.
|
This property holds the control background color, including border color of overlapped elements.
|
||||||
*/
|
*/
|
||||||
property color backgroundColor: Theme.palette.baseColor4
|
property color backgroundColor: Theme.palette.baseColor4
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty int CommunityPermissionsRow::backgroundRadius
|
\qmlproperty int PermissionsRow::backgroundRadius
|
||||||
This property holds the background radius.
|
This property holds the background radius.
|
||||||
*/
|
*/
|
||||||
property int backgroundRadius: 8
|
property int backgroundRadius: 8
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty int CommunityPermissionsRow::dotsIconSize
|
\qmlproperty int PermissionsRow::dotsIconSize
|
||||||
This property holds the dots icon size.
|
This property holds the dots icon size.
|
||||||
*/
|
*/
|
||||||
property int dotsIconSize: 8
|
property int dotsIconSize: 8
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty int CommunityPermissionsRow::pixelSize
|
\qmlproperty int PermissionsRow::pixelSize
|
||||||
This property holds the font pixel size of all elements that contain text,
|
This property holds the font pixel size of all elements that contain text,
|
||||||
like the text `or` between elements or the `+2` and `+3` element's text.
|
like the text `or` between elements or the `+2` and `+3` element's text.
|
||||||
*/
|
*/
|
|
@ -2,28 +2,29 @@ AddressesInputList 1.0 AddressesInputList.qml
|
||||||
AddressesSelectorPanel 1.0 AddressesSelectorPanel.qml
|
AddressesSelectorPanel 1.0 AddressesSelectorPanel.qml
|
||||||
AirdropRecipientsSelector 1.0 AirdropRecipientsSelector.qml
|
AirdropRecipientsSelector 1.0 AirdropRecipientsSelector.qml
|
||||||
AirdropTokensSelector 1.0 AirdropTokensSelector.qml
|
AirdropTokensSelector 1.0 AirdropTokensSelector.qml
|
||||||
CommunityBannerPicker 1.0 CommunityBannerPicker.qml
|
BannerPicker 1.0 BannerPicker.qml
|
||||||
CommunityCategoryListItem 1.0 CommunityCategoryListItem.qml
|
CategoryListItem 1.0 CategoryListItem.qml
|
||||||
CommunityColorPicker 1.0 CommunityColorPicker.qml
|
|
||||||
CommunityDescriptionInput 1.0 CommunityDescriptionInput.qml
|
|
||||||
CommunityIntroMessageInput 1.0 CommunityIntroMessageInput.qml
|
|
||||||
CommunityListItem 1.0 CommunityListItem.qml
|
CommunityListItem 1.0 CommunityListItem.qml
|
||||||
CommunityLogoPicker 1.0 CommunityLogoPicker.qml
|
ColorPicker 1.0 ColorPicker.qml
|
||||||
CommunityNameInput 1.0 CommunityNameInput.qml
|
DescriptionInput 1.0 DescriptionInput.qml
|
||||||
CommunityOptions 1.0 CommunityOptions.qml
|
|
||||||
CommunityOutroMessageInput 1.0 CommunityOutroMessageInput.qml
|
|
||||||
CommunityPermissionsRow 1.0 CommunityPermissionsRow.qml
|
|
||||||
CommunityTagsPicker 1.0 CommunityTagsPicker.qml
|
|
||||||
CommunityTagsRow 1.0 CommunityTagsRow.qml
|
|
||||||
HoldingTypes 1.0 HoldingTypes.qml
|
HoldingTypes 1.0 HoldingTypes.qml
|
||||||
HoldingsDropdown 1.0 HoldingsDropdown.qml
|
HoldingsDropdown 1.0 HoldingsDropdown.qml
|
||||||
|
IssuePill 1.0 IssuePill.qml
|
||||||
InDropdown 1.0 InDropdown.qml
|
InDropdown 1.0 InDropdown.qml
|
||||||
InlineNetworksComboBox 1.0 InlineNetworksComboBox.qml
|
InlineNetworksComboBox 1.0 InlineNetworksComboBox.qml
|
||||||
|
IntroMessageInput 1.0 IntroMessageInput.qml
|
||||||
|
LogoPicker 1.0 LogoPicker.qml
|
||||||
MembersDropdown 1.0 MembersDropdown.qml
|
MembersDropdown 1.0 MembersDropdown.qml
|
||||||
MembersSelectorPanel 1.0 MembersSelectorPanel.qml
|
MembersSelectorPanel 1.0 MembersSelectorPanel.qml
|
||||||
|
NameInput 1.0 NameInput.qml
|
||||||
|
Options 1.0 Options.qml
|
||||||
|
OutroMessageInput 1.0 OutroMessageInput.qml
|
||||||
PermissionItem 1.0 PermissionItem.qml
|
PermissionItem 1.0 PermissionItem.qml
|
||||||
PermissionsDropdown 1.0 PermissionsDropdown.qml
|
PermissionsDropdown 1.0 PermissionsDropdown.qml
|
||||||
|
PermissionsRow 1.0 PermissionsRow.qml
|
||||||
RecipientTypeSelectionDropdown 1.0 RecipientTypeSelectionDropdown.qml
|
RecipientTypeSelectionDropdown 1.0 RecipientTypeSelectionDropdown.qml
|
||||||
|
TagsPicker 1.0 TagsPicker.qml
|
||||||
|
TagsRow 1.0 TagsRow.qml
|
||||||
TokenItem 1.0 TokenItem.qml
|
TokenItem 1.0 TokenItem.qml
|
||||||
TokenPanel 1.0 TokenPanel.qml
|
TokenPanel 1.0 TokenPanel.qml
|
||||||
singleton PermissionTypes 1.0 PermissionTypes.qml
|
singleton PermissionTypes 1.0 PermissionTypes.qml
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
singleton CommunityPermissionsHelpers 1.0 CommunityPermissionsHelpers.qml
|
singleton PermissionsHelpers 1.0 PermissionsHelpers.qml
|
||||||
TokenObject 1.0 TokenObject.qml
|
TokenObject 1.0 TokenObject.qml
|
||||||
|
|
|
@ -24,7 +24,7 @@ SettingsPageLayout {
|
||||||
|
|
||||||
// JS object specifing fees for the airdrop operation, should be set to
|
// JS object specifing fees for the airdrop operation, should be set to
|
||||||
// provide response to airdropFeesRequested signal.
|
// provide response to airdropFeesRequested signal.
|
||||||
// Refer CommunityNewAirdropView::airdropFees for details.
|
// Refer EditAirdropView::airdropFees for details.
|
||||||
property var airdropFees: null
|
property var airdropFees: null
|
||||||
|
|
||||||
property int viewWidth: 560 // by design
|
property int viewWidth: 560 // by design
|
||||||
|
@ -99,7 +99,7 @@ SettingsPageLayout {
|
||||||
Component {
|
Component {
|
||||||
id: welcomeView
|
id: welcomeView
|
||||||
|
|
||||||
CommunityWelcomeSettingsView {
|
WelcomeSettingsView {
|
||||||
viewWidth: root.viewWidth
|
viewWidth: root.viewWidth
|
||||||
image: Style.png("community/airdrops8_1")
|
image: Style.png("community/airdrops8_1")
|
||||||
title: qsTr("Airdrop community tokens")
|
title: qsTr("Airdrop community tokens")
|
||||||
|
@ -115,7 +115,7 @@ SettingsPageLayout {
|
||||||
Component {
|
Component {
|
||||||
id: newAirdropView
|
id: newAirdropView
|
||||||
|
|
||||||
CommunityNewAirdropView {
|
EditAirdropView {
|
||||||
id: view
|
id: view
|
||||||
|
|
||||||
communityDetails: root.communityDetails
|
communityDetails: root.communityDetails
|
|
@ -51,32 +51,32 @@ StatusScrollView {
|
||||||
width: 608
|
width: 608
|
||||||
spacing: 12
|
spacing: 12
|
||||||
|
|
||||||
CommunityNameInput {
|
NameInput {
|
||||||
id: nameInput
|
id: nameInput
|
||||||
input.edit.objectName: "editCommunityNameInput"
|
input.edit.objectName: "editCommunityNameInput"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Component.onCompleted: nameInput.input.forceActiveFocus(Qt.MouseFocusReason)
|
Component.onCompleted: nameInput.input.forceActiveFocus(Qt.MouseFocusReason)
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityDescriptionInput {
|
DescriptionInput {
|
||||||
id: descriptionTextInput
|
id: descriptionTextInput
|
||||||
input.edit.objectName: "editCommunityDescriptionInput"
|
input.edit.objectName: "editCommunityDescriptionInput"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityLogoPicker {
|
LogoPicker {
|
||||||
id: logoPicker
|
id: logoPicker
|
||||||
objectName: "editCommunityLogoPicker"
|
objectName: "editCommunityLogoPicker"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityBannerPicker {
|
BannerPicker {
|
||||||
id: bannerPicker
|
id: bannerPicker
|
||||||
objectName: "editCommunityBannerPicker"
|
objectName: "editCommunityBannerPicker"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityColorPicker {
|
ColorPicker {
|
||||||
id: colorPicker
|
id: colorPicker
|
||||||
objectName: "editCommunityColorPicker"
|
objectName: "editCommunityColorPicker"
|
||||||
onPick: Global.openPopup(pickColorComponent)
|
onPick: Global.openPopup(pickColorComponent)
|
||||||
|
@ -89,7 +89,7 @@ StatusScrollView {
|
||||||
width: 640
|
width: 640
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
leftButtons: []
|
leftButtons: []
|
||||||
replaceItem: CommunityColorPanel {
|
replaceItem: ColorPanel {
|
||||||
clip: true
|
clip: true
|
||||||
Component.onCompleted: color = colorPicker.color
|
Component.onCompleted: color = colorPicker.color
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
|
@ -102,7 +102,7 @@ StatusScrollView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityTagsPicker {
|
TagsPicker {
|
||||||
id: tagsPicker
|
id: tagsPicker
|
||||||
objectName: "editCommunityTagsPicker"
|
objectName: "editCommunityTagsPicker"
|
||||||
onPick: Global.openPopup(pickTagsComponent)
|
onPick: Global.openPopup(pickTagsComponent)
|
||||||
|
@ -115,7 +115,7 @@ StatusScrollView {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
leftButtons: []
|
leftButtons: []
|
||||||
width: 640
|
width: 640
|
||||||
replaceItem: CommunityTagsPanel {
|
replaceItem: TagsPanel {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
tags = tagsPicker.tags;
|
tags = tagsPicker.tags;
|
||||||
selectedTags = tagsPicker.selectedTags;
|
selectedTags = tagsPicker.selectedTags;
|
||||||
|
@ -135,7 +135,7 @@ StatusScrollView {
|
||||||
Layout.bottomMargin: -layout.spacing
|
Layout.bottomMargin: -layout.spacing
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityOptions {
|
Options {
|
||||||
id: options
|
id: options
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,7 @@ StatusScrollView {
|
||||||
Layout.bottomMargin: 8
|
Layout.bottomMargin: 8
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityIntroMessageInput {
|
IntroMessageInput {
|
||||||
id: introMessageTextInput
|
id: introMessageTextInput
|
||||||
input.edit.objectName: "editCommunityIntroInput"
|
input.edit.objectName: "editCommunityIntroInput"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -154,7 +154,7 @@ StatusScrollView {
|
||||||
maximumHeight: 108
|
maximumHeight: 108
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityOutroMessageInput {
|
OutroMessageInput {
|
||||||
id: outroMessageTextInput
|
id: outroMessageTextInput
|
||||||
input.edit.objectName: "editCommunityOutroInput"
|
input.edit.objectName: "editCommunityOutroInput"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
|
@ -29,7 +29,7 @@ Control {
|
||||||
readonly property int defaultHoldingsSpacing: 8
|
readonly property int defaultHoldingsSpacing: 8
|
||||||
|
|
||||||
function holdingsTextFormat(name, amount) {
|
function holdingsTextFormat(name, amount) {
|
||||||
return CommunityPermissionsHelpers.setHoldingsTextFormat(HoldingTypes.Type.Asset, name, amount)
|
return PermissionsHelpers.setHoldingsTextFormat(HoldingTypes.Type.Asset, name, amount)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ Control {
|
||||||
readonly property string memberchipRequestRejectedText: qsTr("Membership Request Rejected")
|
readonly property string memberchipRequestRejectedText: qsTr("Membership Request Rejected")
|
||||||
|
|
||||||
function holdingsTextFormat(name, amount) {
|
function holdingsTextFormat(name, amount) {
|
||||||
return CommunityPermissionsHelpers.setHoldingsTextFormat(HoldingTypes.Type.Asset, name, amount)
|
return PermissionsHelpers.setHoldingsTextFormat(HoldingTypes.Type.Asset, name, amount)
|
||||||
}
|
}
|
||||||
|
|
||||||
function getInvitationPendingText() {
|
function getInvitationPendingText() {
|
||||||
|
|
|
@ -104,7 +104,7 @@ SettingsPageLayout {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
currentIndex: membersTabBar.currentIndex
|
currentIndex: membersTabBar.currentIndex
|
||||||
|
|
||||||
CommunityMembersTabPanel {
|
MembersTabPanel {
|
||||||
model: root.membersModel
|
model: root.membersModel
|
||||||
rootStore: root.rootStore
|
rootStore: root.rootStore
|
||||||
placeholderText: {
|
placeholderText: {
|
||||||
|
@ -113,7 +113,7 @@ SettingsPageLayout {
|
||||||
|
|
||||||
return qsTr("Search %1's %n member(s)", "", root.membersModel ? root.membersModel.count : 0).arg(root.communityName)
|
return qsTr("Search %1's %n member(s)", "", root.membersModel ? root.membersModel.count : 0).arg(root.communityName)
|
||||||
}
|
}
|
||||||
panelType: CommunityMembersTabPanel.TabType.AllMembers
|
panelType: MembersTabPanel.TabType.AllMembers
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
@ -131,7 +131,7 @@ SettingsPageLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityMembersTabPanel {
|
MembersTabPanel {
|
||||||
model: root.pendingMemberRequestsModel
|
model: root.pendingMemberRequestsModel
|
||||||
rootStore: root.rootStore
|
rootStore: root.rootStore
|
||||||
placeholderText: {
|
placeholderText: {
|
||||||
|
@ -140,7 +140,7 @@ SettingsPageLayout {
|
||||||
|
|
||||||
return qsTr("Search %1's %n pending request(s)", "", root.pendingMemberRequestsModel.count).arg(root.communityName)
|
return qsTr("Search %1's %n pending request(s)", "", root.pendingMemberRequestsModel.count).arg(root.communityName)
|
||||||
}
|
}
|
||||||
panelType: CommunityMembersTabPanel.TabType.PendingRequests
|
panelType: MembersTabPanel.TabType.PendingRequests
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
@ -149,7 +149,7 @@ SettingsPageLayout {
|
||||||
onDeclineRequestToJoin: root.declineRequestToJoin(id)
|
onDeclineRequestToJoin: root.declineRequestToJoin(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityMembersTabPanel {
|
MembersTabPanel {
|
||||||
model: root.declinedMemberRequestsModel
|
model: root.declinedMemberRequestsModel
|
||||||
rootStore: root.rootStore
|
rootStore: root.rootStore
|
||||||
placeholderText: {
|
placeholderText: {
|
||||||
|
@ -158,7 +158,7 @@ SettingsPageLayout {
|
||||||
|
|
||||||
return qsTr("Search %1's %n rejected member(s)", "", root.declinedMemberRequestsModel.count).arg(root.communityName)
|
return qsTr("Search %1's %n rejected member(s)", "", root.declinedMemberRequestsModel.count).arg(root.communityName)
|
||||||
}
|
}
|
||||||
panelType: CommunityMembersTabPanel.TabType.DeclinedRequests
|
panelType: MembersTabPanel.TabType.DeclinedRequests
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
@ -166,7 +166,7 @@ SettingsPageLayout {
|
||||||
onAcceptRequestToJoin: root.acceptRequestToJoin(id)
|
onAcceptRequestToJoin: root.acceptRequestToJoin(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityMembersTabPanel {
|
MembersTabPanel {
|
||||||
model: root.bannedMembersModel
|
model: root.bannedMembersModel
|
||||||
rootStore: root.rootStore
|
rootStore: root.rootStore
|
||||||
placeholderText: {
|
placeholderText: {
|
||||||
|
@ -175,7 +175,7 @@ SettingsPageLayout {
|
||||||
|
|
||||||
return qsTr("Search %1's %n banned member(s)", "", root.bannedMembersModel.count).arg(root.communityName)
|
return qsTr("Search %1's %n banned member(s)", "", root.bannedMembersModel.count).arg(root.communityName)
|
||||||
}
|
}
|
||||||
panelType: CommunityMembersTabPanel.TabType.BannedMembers
|
panelType: MembersTabPanel.TabType.BannedMembers
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
|
@ -35,7 +35,7 @@ Item {
|
||||||
DeclinedRequests
|
DeclinedRequests
|
||||||
}
|
}
|
||||||
|
|
||||||
property int panelType: CommunityMembersTabPanel.TabType.AllMembers
|
property int panelType: MembersTabPanel.TabType.AllMembers
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -81,7 +81,7 @@ Item {
|
||||||
components: [
|
components: [
|
||||||
StatusButton {
|
StatusButton {
|
||||||
objectName: "MemberListIten_KickButton"
|
objectName: "MemberListIten_KickButton"
|
||||||
visible: (root.panelType === CommunityMembersTabPanel.TabType.AllMembers) && isHovered && canBeBanned
|
visible: (root.panelType === MembersTabPanel.TabType.AllMembers) && isHovered && canBeBanned
|
||||||
text: qsTr("Kick")
|
text: qsTr("Kick")
|
||||||
type: StatusBaseButton.Type.Danger
|
type: StatusBaseButton.Type.Danger
|
||||||
size: StatusBaseButton.Size.Small
|
size: StatusBaseButton.Size.Small
|
||||||
|
@ -89,7 +89,7 @@ Item {
|
||||||
},
|
},
|
||||||
|
|
||||||
StatusButton {
|
StatusButton {
|
||||||
visible: (root.panelType === CommunityMembersTabPanel.TabType.AllMembers) && isHovered && canBeBanned
|
visible: (root.panelType === MembersTabPanel.TabType.AllMembers) && isHovered && canBeBanned
|
||||||
text: qsTr("Ban")
|
text: qsTr("Ban")
|
||||||
type: StatusBaseButton.Type.Danger
|
type: StatusBaseButton.Type.Danger
|
||||||
size: StatusBaseButton.Size.Small
|
size: StatusBaseButton.Size.Small
|
||||||
|
@ -97,13 +97,13 @@ Item {
|
||||||
},
|
},
|
||||||
|
|
||||||
StatusButton {
|
StatusButton {
|
||||||
visible: (root.panelType === CommunityMembersTabPanel.TabType.BannedMembers) && isHovered && canBeBanned
|
visible: (root.panelType === MembersTabPanel.TabType.BannedMembers) && isHovered && canBeBanned
|
||||||
text: qsTr("Unban")
|
text: qsTr("Unban")
|
||||||
onClicked: root.unbanUserClicked(model.pubKey)
|
onClicked: root.unbanUserClicked(model.pubKey)
|
||||||
},
|
},
|
||||||
|
|
||||||
StatusButton {
|
StatusButton {
|
||||||
visible: (root.panelType === CommunityMembersTabPanel.TabType.PendingRequests) && isHovered
|
visible: (root.panelType === MembersTabPanel.TabType.PendingRequests) && isHovered
|
||||||
text: qsTr("Reject")
|
text: qsTr("Reject")
|
||||||
type: StatusBaseButton.Type.Danger
|
type: StatusBaseButton.Type.Danger
|
||||||
icon.name: "close-circle"
|
icon.name: "close-circle"
|
||||||
|
@ -112,8 +112,8 @@ Item {
|
||||||
},
|
},
|
||||||
|
|
||||||
StatusButton {
|
StatusButton {
|
||||||
visible: (root.panelType === CommunityMembersTabPanel.TabType.PendingRequests ||
|
visible: (root.panelType === MembersTabPanel.TabType.PendingRequests ||
|
||||||
root.panelType === CommunityMembersTabPanel.TabType.DeclinedRequests) && isHovered
|
root.panelType === MembersTabPanel.TabType.DeclinedRequests) && isHovered
|
||||||
text: qsTr("Accept")
|
text: qsTr("Accept")
|
||||||
icon.name: "checkmark-circle"
|
icon.name: "checkmark-circle"
|
||||||
icon.color: Theme.palette.successColor1
|
icon.color: Theme.palette.successColor1
|
||||||
|
@ -142,7 +142,7 @@ Item {
|
||||||
asset.width: 40
|
asset.width: 40
|
||||||
asset.height: 40
|
asset.height: 40
|
||||||
ringSettings.ringSpecModel: model.colorHash
|
ringSettings.ringSpecModel: model.colorHash
|
||||||
statusListItemIcon.badge.visible: (root.panelType === CommunityMembersTabPanel.TabType.AllMembers)
|
statusListItemIcon.badge.visible: (root.panelType === MembersTabPanel.TabType.AllMembers)
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if(mouse.button === Qt.RightButton) {
|
if(mouse.button === Qt.RightButton) {
|
|
@ -225,7 +225,7 @@ SettingsPageLayout {
|
||||||
Component {
|
Component {
|
||||||
id: welcomeView
|
id: welcomeView
|
||||||
|
|
||||||
CommunityWelcomeSettingsView {
|
WelcomeSettingsView {
|
||||||
viewWidth: root.viewWidth
|
viewWidth: root.viewWidth
|
||||||
image: Style.png("community/mint2_1")
|
image: Style.png("community/mint2_1")
|
||||||
title: qsTr("Community tokens")
|
title: qsTr("Community tokens")
|
||||||
|
@ -285,7 +285,7 @@ SettingsPageLayout {
|
||||||
|
|
||||||
currentIndex: optionsTab.currentItem == collectiblesTab ? 0 : 1
|
currentIndex: optionsTab.currentItem == collectiblesTab ? 0 : 1
|
||||||
|
|
||||||
CustomCommunityNewTokenView {
|
CustomEditCommunityTokenView {
|
||||||
id: newCollectibleView
|
id: newCollectibleView
|
||||||
|
|
||||||
isAssetView: false
|
isAssetView: false
|
||||||
|
@ -297,7 +297,7 @@ SettingsPageLayout {
|
||||||
referenceSymbol: colLayout.referenceSymbol
|
referenceSymbol: colLayout.referenceSymbol
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomCommunityNewTokenView {
|
CustomEditCommunityTokenView {
|
||||||
id: newAssetView
|
id: newAssetView
|
||||||
|
|
||||||
isAssetView: true
|
isAssetView: true
|
||||||
|
@ -309,7 +309,7 @@ SettingsPageLayout {
|
||||||
referenceSymbol: colLayout.referenceSymbol
|
referenceSymbol: colLayout.referenceSymbol
|
||||||
}
|
}
|
||||||
|
|
||||||
component CustomCommunityNewTokenView: CommunityNewTokenView {
|
component CustomEditCommunityTokenView: EditCommunityTokenView {
|
||||||
viewWidth: root.viewWidth
|
viewWidth: root.viewWidth
|
||||||
layer1Networks: root.layer1Networks
|
layer1Networks: root.layer1Networks
|
||||||
layer2Networks: root.layer2Networks
|
layer2Networks: root.layer2Networks
|
||||||
|
@ -521,7 +521,7 @@ SettingsPageLayout {
|
||||||
Component {
|
Component {
|
||||||
id: mintedTokensView
|
id: mintedTokensView
|
||||||
|
|
||||||
CommunityMintedTokensView {
|
MintedTokensView {
|
||||||
viewWidth: root.viewWidth
|
viewWidth: root.viewWidth
|
||||||
model: root.tokensModel
|
model: root.tokensModel
|
||||||
onItemClicked: {
|
onItemClicked: {
|
|
@ -136,7 +136,7 @@ StackLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
CommunityBanner {
|
BannerPanel {
|
||||||
objectName: "invitePeopleBanner"
|
objectName: "invitePeopleBanner"
|
||||||
text: qsTr("Welcome to your community!")
|
text: qsTr("Welcome to your community!")
|
||||||
buttonText: qsTr("Invite new people")
|
buttonText: qsTr("Invite new people")
|
||||||
|
@ -146,7 +146,7 @@ StackLayout {
|
||||||
Item {
|
Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
CommunityBanner {
|
BannerPanel {
|
||||||
objectName: "airdropBanner"
|
objectName: "airdropBanner"
|
||||||
visible: root.owned
|
visible: root.owned
|
||||||
text: qsTr("Try an airdrop to reward your community for engagement!")
|
text: qsTr("Try an airdrop to reward your community for engagement!")
|
||||||
|
@ -159,7 +159,7 @@ StackLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityBanner {
|
BannerPanel {
|
||||||
objectName: "backUpBanner"
|
objectName: "backUpBanner"
|
||||||
visible: root.owned
|
visible: root.owned
|
||||||
text: qsTr("Back up community key")
|
text: qsTr("Back up community key")
|
||||||
|
@ -177,7 +177,7 @@ StackLayout {
|
||||||
title: qsTr("Edit Community")
|
title: qsTr("Edit Community")
|
||||||
editable: true
|
editable: true
|
||||||
|
|
||||||
content: CommunityEditSettingsPanel {
|
content: EditSettingsPanel {
|
||||||
name: root.name
|
name: root.name
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
description: root.description
|
description: root.description
|
|
@ -142,7 +142,7 @@ SettingsPageLayout {
|
||||||
Component {
|
Component {
|
||||||
id: welcomeView
|
id: welcomeView
|
||||||
|
|
||||||
CommunityWelcomeSettingsView {
|
WelcomeSettingsView {
|
||||||
viewWidth: root.viewWidth
|
viewWidth: root.viewWidth
|
||||||
image: Style.png("community/permissions2_3")
|
image: Style.png("community/permissions2_3")
|
||||||
title: qsTr("Permissions")
|
title: qsTr("Permissions")
|
||||||
|
@ -158,8 +158,8 @@ SettingsPageLayout {
|
||||||
Component {
|
Component {
|
||||||
id: newPermissionView
|
id: newPermissionView
|
||||||
|
|
||||||
CommunityNewPermissionView {
|
EditPermissionView {
|
||||||
id: communityNewPermissionView
|
id: editPermissionView
|
||||||
|
|
||||||
viewWidth: root.viewWidth
|
viewWidth: root.viewWidth
|
||||||
|
|
||||||
|
@ -182,8 +182,8 @@ SettingsPageLayout {
|
||||||
// dependencies
|
// dependencies
|
||||||
holdingsTracker.revision
|
holdingsTracker.revision
|
||||||
channelsTracker.revision
|
channelsTracker.revision
|
||||||
communityNewPermissionView.dirtyValues.permissionType
|
editPermissionView.dirtyValues.permissionType
|
||||||
communityNewPermissionView.dirtyValues.isPrivate
|
editPermissionView.dirtyValues.isPrivate
|
||||||
const model = root.permissionsModel
|
const model = root.permissionsModel
|
||||||
const count = model.rowCount()
|
const count = model.rowCount()
|
||||||
|
|
||||||
|
@ -287,21 +287,21 @@ SettingsPageLayout {
|
||||||
ModelChangeTracker {
|
ModelChangeTracker {
|
||||||
id: holdingsTracker
|
id: holdingsTracker
|
||||||
|
|
||||||
model: communityNewPermissionView.dirtyValues.selectedHoldingsModel
|
model: editPermissionView.dirtyValues.selectedHoldingsModel
|
||||||
}
|
}
|
||||||
|
|
||||||
ModelChangeTracker {
|
ModelChangeTracker {
|
||||||
id: channelsTracker
|
id: channelsTracker
|
||||||
|
|
||||||
model: communityNewPermissionView.dirtyValues.selectedChannelsModel
|
model: editPermissionView.dirtyValues.selectedChannelsModel
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
target: root
|
target: root
|
||||||
property: "saveChangesButtonEnabled"
|
property: "saveChangesButtonEnabled"
|
||||||
value: !communityNewPermissionView.permissionDuplicated
|
value: !editPermissionView.permissionDuplicated
|
||||||
&& !communityNewPermissionView.permissionTypeLimitReached
|
&& !editPermissionView.permissionTypeLimitReached
|
||||||
&& communityNewPermissionView.isFullyFilled
|
&& editPermissionView.isFullyFilled
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -309,7 +309,7 @@ SettingsPageLayout {
|
||||||
Component {
|
Component {
|
||||||
id: permissionsView
|
id: permissionsView
|
||||||
|
|
||||||
CommunityPermissionsView {
|
PermissionsView {
|
||||||
permissionsModel: root.permissionsModel
|
permissionsModel: root.permissionsModel
|
||||||
assetsModel: root.assetsModel
|
assetsModel: root.assetsModel
|
||||||
collectiblesModel: root.collectiblesModel
|
collectiblesModel: root.collectiblesModel
|
|
@ -1,27 +1,29 @@
|
||||||
|
AirdropsSettingsPanel 1.0 AirdropsSettingsPanel.qml
|
||||||
BackUpCommuntyBannerPanel 1.0 BackUpCommuntyBannerPanel.qml
|
BackUpCommuntyBannerPanel 1.0 BackUpCommuntyBannerPanel.qml
|
||||||
CommunityAirdropsSettingsPanel 1.0 CommunityAirdropsSettingsPanel.qml
|
BannerPanel 1.0 BannerPanel.qml
|
||||||
CommunityBanner 1.0 CommunityBanner.qml
|
ChannelsAndCategoriesBannerPanel 1.0 ChannelsAndCategoriesBannerPanel.qml
|
||||||
CommunityChannelsAndCategoriesBannerPanel 1.0 CommunityChannelsAndCategoriesBannerPanel.qml
|
ChatPermissionQualificationPanel 1.0 ChatPermissionQualificationPanel.qml
|
||||||
CommunityColumnHeaderPanel 1.0 CommunityColumnHeaderPanel.qml
|
ColorPanel 1.0 ColorPanel.qml
|
||||||
CommunityMembersSettingsPanel 1.0 CommunityMembersSettingsPanel.qml
|
ColumnHeaderPanel 1.0 ColumnHeaderPanel.qml
|
||||||
CommunityMintTokensSettingsPanel 1.0 CommunityMintTokensSettingsPanel.qml
|
|
||||||
CommunityOverviewSettingsPanel 1.0 CommunityOverviewSettingsPanel.qml
|
|
||||||
CommunityPermissionsSettingsPanel 1.0 CommunityPermissionsSettingsPanel.qml
|
|
||||||
CommunityProfilePopupOverviewPanel 1.0 CommunityProfilePopupOverviewPanel.qml
|
|
||||||
CommunityProfilePopupInviteFriendsPanel 1.0 CommunityProfilePopupInviteFriendsPanel.qml
|
|
||||||
CommunityProfilePopupInviteMessagePanel 1.0 CommunityProfilePopupInviteMessagePanel.qml
|
|
||||||
CommunityWelcomeBannerPanel 1.0 CommunityWelcomeBannerPanel.qml
|
|
||||||
FeesPanel 1.0 FeesPanel.qml
|
FeesPanel 1.0 FeesPanel.qml
|
||||||
HidePermissionPanel 1.0 HidePermissionPanel.qml
|
HidePermissionPanel 1.0 HidePermissionPanel.qml
|
||||||
|
JoinCommunityCenterPanel 1.0 JoinCommunityCenterPanel.qml
|
||||||
|
JoinCommunityHeaderPanel 1.0 JoinCommunityHeaderPanel.qml
|
||||||
JoinPermissionsOverlayPanel 1.0 JoinPermissionsOverlayPanel.qml
|
JoinPermissionsOverlayPanel 1.0 JoinPermissionsOverlayPanel.qml
|
||||||
|
MembersSettingsPanel 1.0 MembersSettingsPanel.qml
|
||||||
MintTokensFooterPanel 1.0 MintTokensFooterPanel.qml
|
MintTokensFooterPanel 1.0 MintTokensFooterPanel.qml
|
||||||
|
MintTokensSettingsPanel 1.0 MintTokensSettingsPanel.qml
|
||||||
|
OverviewSettingsPanel 1.0 OverviewSettingsPanel.qml
|
||||||
PermissionConflictWarningPanel 1.0 PermissionConflictWarningPanel.qml
|
PermissionConflictWarningPanel 1.0 PermissionConflictWarningPanel.qml
|
||||||
PermissionQualificationPanel 1.0 PermissionQualificationPanel.qml
|
PermissionQualificationPanel 1.0 PermissionQualificationPanel.qml
|
||||||
|
PermissionsSettingsPanel 1.0 PermissionsSettingsPanel.qml
|
||||||
|
ProfilePopupOverviewPanel 1.0 ProfilePopupOverviewPanel.qml
|
||||||
|
ProfilePopupInviteFriendsPanel 1.0 ProfilePopupInviteFriendsPanel.qml
|
||||||
|
ProfilePopupInviteMessagePanel 1.0 ProfilePopupInviteMessagePanel.qml
|
||||||
SortableTokenHoldersList 1.0 SortableTokenHoldersList.qml
|
SortableTokenHoldersList 1.0 SortableTokenHoldersList.qml
|
||||||
SortableTokenHoldersPanel 1.0 SortableTokenHoldersPanel.qml
|
SortableTokenHoldersPanel 1.0 SortableTokenHoldersPanel.qml
|
||||||
|
TagsPanel 1.0 TagsPanel.qml
|
||||||
TokenHoldersPanel 1.0 TokenHoldersPanel.qml
|
TokenHoldersPanel 1.0 TokenHoldersPanel.qml
|
||||||
TokenHoldersProxyModel 1.0 TokenHoldersProxyModel.qml
|
TokenHoldersProxyModel 1.0 TokenHoldersProxyModel.qml
|
||||||
WarningPanel 1.0 WarningPanel.qml
|
WarningPanel 1.0 WarningPanel.qml
|
||||||
ChatPermissionQualificationPanel 1.0 ChatPermissionQualificationPanel.qml
|
WelcomeBannerPanel 1.0 WelcomeBannerPanel.qml
|
||||||
JoinCommunityCenterPanel 1.0 JoinCommunityCenterPanel.qml
|
|
||||||
JoinCommunityHeaderPanel 1.0 JoinCommunityHeaderPanel.qml
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ StatusModal {
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: profileOverview
|
id: profileOverview
|
||||||
CommunityProfilePopupOverviewPanel {
|
ProfilePopupOverviewPanel {
|
||||||
width: stack.width
|
width: stack.width
|
||||||
|
|
||||||
headerTitle: root.community.name
|
headerTitle: root.community.name
|
||||||
|
|
|
@ -16,9 +16,7 @@ import StatusQ.Controls.Validators 0.1
|
||||||
import StatusQ.Popups 0.1
|
import StatusQ.Popups 0.1
|
||||||
|
|
||||||
import AppLayouts.Communities.controls 1.0
|
import AppLayouts.Communities.controls 1.0
|
||||||
|
import AppLayouts.Communities.panels 1.0
|
||||||
import "../controls"
|
|
||||||
import "../panels"
|
|
||||||
|
|
||||||
StatusStackModal {
|
StatusStackModal {
|
||||||
id: root
|
id: root
|
||||||
|
@ -387,31 +385,31 @@ StatusStackModal {
|
||||||
width: generalView.availableWidth
|
width: generalView.availableWidth
|
||||||
spacing: 16
|
spacing: 16
|
||||||
|
|
||||||
CommunityNameInput {
|
NameInput {
|
||||||
id: nameInput
|
id: nameInput
|
||||||
input.edit.objectName: "createCommunityNameInput"
|
input.edit.objectName: "createCommunityNameInput"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
input.tabNavItem: descriptionTextInput.input.edit
|
input.tabNavItem: descriptionTextInput.input.edit
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityDescriptionInput {
|
DescriptionInput {
|
||||||
id: descriptionTextInput
|
id: descriptionTextInput
|
||||||
input.edit.objectName: "createCommunityDescriptionInput"
|
input.edit.objectName: "createCommunityDescriptionInput"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
input.tabNavItem: nameInput.input.edit
|
input.tabNavItem: nameInput.input.edit
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityLogoPicker {
|
LogoPicker {
|
||||||
id: logoPicker
|
id: logoPicker
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityBannerPicker {
|
BannerPicker {
|
||||||
id: bannerPicker
|
id: bannerPicker
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityColorPicker {
|
ColorPicker {
|
||||||
id: colorPicker
|
id: colorPicker
|
||||||
onPick: root.replace(colorPanel)
|
onPick: root.replace(colorPanel)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -419,7 +417,7 @@ StatusStackModal {
|
||||||
Component {
|
Component {
|
||||||
id: colorPanel
|
id: colorPanel
|
||||||
|
|
||||||
CommunityColorPanel {
|
ColorPanel {
|
||||||
Component.onCompleted: color = colorPicker.color
|
Component.onCompleted: color = colorPicker.color
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
colorPicker.color = color;
|
colorPicker.color = color;
|
||||||
|
@ -429,7 +427,7 @@ StatusStackModal {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityTagsPicker {
|
TagsPicker {
|
||||||
id: communityTagsPicker
|
id: communityTagsPicker
|
||||||
tags: root.store.communityTags
|
tags: root.store.communityTags
|
||||||
onPick: root.replace(tagsPanel)
|
onPick: root.replace(tagsPanel)
|
||||||
|
@ -438,7 +436,7 @@ StatusStackModal {
|
||||||
Component {
|
Component {
|
||||||
id: tagsPanel
|
id: tagsPanel
|
||||||
|
|
||||||
CommunityTagsPanel {
|
TagsPanel {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
tags = communityTagsPicker.tags;
|
tags = communityTagsPicker.tags;
|
||||||
selectedTags = communityTagsPicker.selectedTags;
|
selectedTags = communityTagsPicker.selectedTags;
|
||||||
|
@ -455,7 +453,7 @@ StatusStackModal {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityOptions {
|
Options {
|
||||||
id: options
|
id: options
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
@ -471,7 +469,7 @@ StatusStackModal {
|
||||||
spacing: 11
|
spacing: 11
|
||||||
readonly property bool canGoNext: introMessageInput.valid && outroMessageInput.valid
|
readonly property bool canGoNext: introMessageInput.valid && outroMessageInput.valid
|
||||||
|
|
||||||
CommunityIntroMessageInput {
|
IntroMessageInput {
|
||||||
id: introMessageInput
|
id: introMessageInput
|
||||||
input.edit.objectName: "createCommunityIntroMessageInput"
|
input.edit.objectName: "createCommunityIntroMessageInput"
|
||||||
input.tabNavItem: outroMessageInput.input.edit
|
input.tabNavItem: outroMessageInput.input.edit
|
||||||
|
@ -483,7 +481,7 @@ StatusStackModal {
|
||||||
maximumHeight: (height - Style.current.xlPadding)
|
maximumHeight: (height - Style.current.xlPadding)
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityOutroMessageInput {
|
OutroMessageInput {
|
||||||
id: outroMessageInput
|
id: outroMessageInput
|
||||||
input.edit.objectName: "createCommunityOutroMessageInput"
|
input.edit.objectName: "createCommunityOutroMessageInput"
|
||||||
input.tabNavItem: introMessageInput.input.edit
|
input.tabNavItem: introMessageInput.input.edit
|
||||||
|
|
|
@ -93,7 +93,7 @@ StatusStackModal {
|
||||||
Item {
|
Item {
|
||||||
implicitHeight: d.popupContentHeight
|
implicitHeight: d.popupContentHeight
|
||||||
|
|
||||||
CommunityProfilePopupInviteFriendsPanel {
|
ProfilePopupInviteFriendsPanel {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: 16
|
anchors.topMargin: 16
|
||||||
anchors.bottomMargin: 16
|
anchors.bottomMargin: 16
|
||||||
|
@ -106,7 +106,7 @@ StatusStackModal {
|
||||||
},
|
},
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
CommunityProfilePopupInviteMessagePanel {
|
ProfilePopupInviteMessagePanel {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: 16
|
anchors.topMargin: 16
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
AlertPopup 1.0 AlertPopup.qml
|
AlertPopup 1.0 AlertPopup.qml
|
||||||
BurnTokensPopup 1.0 BurnTokensPopup.qml
|
BurnTokensPopup 1.0 BurnTokensPopup.qml
|
||||||
CommunityProfilePopup 1.0 CommunityProfilePopup.qml
|
CommunityProfilePopup 1.0 CommunityProfilePopup.qml
|
||||||
CommunityTokenPermissionsPopup 1.0 CommunityTokenPermissionsPopup.qml
|
TokenPermissionsPopup 1.0 TokenPermissionsPopup.qml
|
||||||
CreateCategoryPopup 1.0 CreateCategoryPopup.qml
|
CreateCategoryPopup 1.0 CreateCategoryPopup.qml
|
||||||
CreateChannelPopup 1.0 CreateChannelPopup.qml
|
CreateChannelPopup 1.0 CreateChannelPopup.qml
|
||||||
CreateCommunityPopup 1.0 CreateCommunityPopup.qml
|
CreateCommunityPopup 1.0 CreateCommunityPopup.qml
|
||||||
|
|
|
@ -86,7 +86,7 @@ StatusScrollView {
|
||||||
|
|
||||||
|
|
||||||
// Community restrictions
|
// Community restrictions
|
||||||
rigthHeaderComponent: CommunityPermissionsRow {
|
rigthHeaderComponent: PermissionsRow {
|
||||||
visible: !!card.permissionsList && card.permissionsList.count > 0
|
visible: !!card.permissionsList && card.permissionsList.count > 0
|
||||||
assetsModel: root.assetsModel
|
assetsModel: root.assetsModel
|
||||||
collectiblesModel: root.collectiblesModel
|
collectiblesModel: root.collectiblesModel
|
||||||
|
|
|
@ -45,7 +45,7 @@ Item {
|
||||||
signal infoButtonClicked
|
signal infoButtonClicked
|
||||||
signal manageButtonClicked
|
signal manageButtonClicked
|
||||||
|
|
||||||
CommunityColumnHeaderPanel {
|
ColumnHeaderPanel {
|
||||||
id: communityHeader
|
id: communityHeader
|
||||||
|
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
@ -391,7 +391,7 @@ Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: item.height
|
height: item.height
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
CommunityWelcomeBannerPanel {
|
WelcomeBannerPanel {
|
||||||
activeCommunity: communityData
|
activeCommunity: communityData
|
||||||
store: root.store
|
store: root.store
|
||||||
hasAddedContacts: root.hasAddedContacts
|
hasAddedContacts: root.hasAddedContacts
|
||||||
|
@ -408,7 +408,7 @@ Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: item.height
|
height: item.height
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
CommunityChannelsAndCategoriesBannerPanel {
|
ChannelsAndCategoriesBannerPanel {
|
||||||
id: channelsAndCategoriesBanner
|
id: channelsAndCategoriesBanner
|
||||||
communityId: communityData.id
|
communityId: communityData.id
|
||||||
onAddMembersClicked: {
|
onAddMembersClicked: {
|
||||||
|
|
|
@ -167,7 +167,7 @@ StatusSectionLayout {
|
||||||
id: stackLayout
|
id: stackLayout
|
||||||
currentIndex: d.currentIndex
|
currentIndex: d.currentIndex
|
||||||
|
|
||||||
CommunityOverviewSettingsPanel {
|
OverviewSettingsPanel {
|
||||||
communityId: root.community.id
|
communityId: root.community.id
|
||||||
name: root.community.name
|
name: root.community.name
|
||||||
description: root.community.description
|
description: root.community.description
|
||||||
|
@ -219,7 +219,7 @@ StatusSectionLayout {
|
||||||
onPreviousPageNameChanged: root.backButtonName = previousPageName
|
onPreviousPageNameChanged: root.backButtonName = previousPageName
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityMembersSettingsPanel {
|
MembersSettingsPanel {
|
||||||
rootStore: root.rootStore
|
rootStore: root.rootStore
|
||||||
membersModel: root.community.members
|
membersModel: root.community.members
|
||||||
bannedMembersModel: root.community.bannedMembers
|
bannedMembersModel: root.community.bannedMembers
|
||||||
|
@ -235,7 +235,7 @@ StatusSectionLayout {
|
||||||
onDeclineRequestToJoin: root.rootStore.declineRequestToJoinCommunity(id, root.community.id)
|
onDeclineRequestToJoin: root.rootStore.declineRequestToJoinCommunity(id, root.community.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityPermissionsSettingsPanel {
|
PermissionsSettingsPanel {
|
||||||
readonly property PermissionsStore permissionsStore:
|
readonly property PermissionsStore permissionsStore:
|
||||||
rootStore.permissionsStore
|
rootStore.permissionsStore
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ StatusSectionLayout {
|
||||||
onNavigateToMintTokenSettings: root.goTo(Constants.CommunitySettingsSections.MintTokens)
|
onNavigateToMintTokenSettings: root.goTo(Constants.CommunitySettingsSections.MintTokens)
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityMintTokensSettingsPanel {
|
MintTokensSettingsPanel {
|
||||||
id: mintPanel
|
id: mintPanel
|
||||||
|
|
||||||
readonly property CommunityTokensStore communityTokensStore:
|
readonly property CommunityTokensStore communityTokensStore:
|
||||||
|
@ -471,7 +471,7 @@ StatusSectionLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunityAirdropsSettingsPanel {
|
AirdropsSettingsPanel {
|
||||||
id: airdropPanel
|
id: airdropPanel
|
||||||
|
|
||||||
communityDetails: d.communityDetails
|
communityDetails: d.communityDetails
|
||||||
|
|
|
@ -90,7 +90,7 @@ StatusScrollView {
|
||||||
else if (type === Constants.TokenType.ERC721)
|
else if (type === Constants.TokenType.ERC721)
|
||||||
tokenModel = root.collectiblesModel
|
tokenModel = root.collectiblesModel
|
||||||
|
|
||||||
const modelItem = CommunityPermissionsHelpers.getTokenByKey(
|
const modelItem = PermissionsHelpers.getTokenByKey(
|
||||||
tokenModel, key)
|
tokenModel, key)
|
||||||
|
|
||||||
const entry = d.prepareEntry(key, amount, type)
|
const entry = d.prepareEntry(key, amount, type)
|
||||||
|
@ -187,7 +187,7 @@ StatusScrollView {
|
||||||
else if (type === Constants.TokenType.ERC721)
|
else if (type === Constants.TokenType.ERC721)
|
||||||
tokenModel = root.collectiblesModel
|
tokenModel = root.collectiblesModel
|
||||||
|
|
||||||
const modelItem = CommunityPermissionsHelpers.getTokenByKey(
|
const modelItem = PermissionsHelpers.getTokenByKey(
|
||||||
tokenModel, key)
|
tokenModel, key)
|
||||||
|
|
||||||
return {
|
return {
|
|
@ -266,14 +266,14 @@ StatusScrollView {
|
||||||
}
|
}
|
||||||
|
|
||||||
onAddAsset: {
|
onAddAsset: {
|
||||||
const modelItem = CommunityPermissionsHelpers.getTokenByKey(
|
const modelItem = PermissionsHelpers.getTokenByKey(
|
||||||
root.assetsModel, key)
|
root.assetsModel, key)
|
||||||
addItem(HoldingTypes.Type.Asset, modelItem, amount)
|
addItem(HoldingTypes.Type.Asset, modelItem, amount)
|
||||||
dropdown.close()
|
dropdown.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
onAddCollectible: {
|
onAddCollectible: {
|
||||||
const modelItem = CommunityPermissionsHelpers.getTokenByKey(
|
const modelItem = PermissionsHelpers.getTokenByKey(
|
||||||
root.collectiblesModel, key)
|
root.collectiblesModel, key)
|
||||||
addItem(HoldingTypes.Type.Collectible, modelItem, amount)
|
addItem(HoldingTypes.Type.Collectible, modelItem, amount)
|
||||||
dropdown.close()
|
dropdown.close()
|
||||||
|
@ -287,7 +287,7 @@ StatusScrollView {
|
||||||
|
|
||||||
onUpdateAsset: {
|
onUpdateAsset: {
|
||||||
const itemIndex = prepareUpdateIndex(key)
|
const itemIndex = prepareUpdateIndex(key)
|
||||||
const modelItem = CommunityPermissionsHelpers.getTokenByKey(root.assetsModel, key)
|
const modelItem = PermissionsHelpers.getTokenByKey(root.assetsModel, key)
|
||||||
|
|
||||||
d.dirtyValues.selectedHoldingsModel.set(
|
d.dirtyValues.selectedHoldingsModel.set(
|
||||||
itemIndex, { type: HoldingTypes.Type.Asset, key, amount })
|
itemIndex, { type: HoldingTypes.Type.Asset, key, amount })
|
||||||
|
@ -296,7 +296,7 @@ StatusScrollView {
|
||||||
|
|
||||||
onUpdateCollectible: {
|
onUpdateCollectible: {
|
||||||
const itemIndex = prepareUpdateIndex(key)
|
const itemIndex = prepareUpdateIndex(key)
|
||||||
const modelItem = CommunityPermissionsHelpers.getTokenByKey(
|
const modelItem = PermissionsHelpers.getTokenByKey(
|
||||||
root.collectiblesModel, key)
|
root.collectiblesModel, key)
|
||||||
|
|
||||||
d.dirtyValues.selectedHoldingsModel.set(
|
d.dirtyValues.selectedHoldingsModel.set(
|
|
@ -31,7 +31,7 @@ SortFilterProxyModel {
|
||||||
const model = type === HoldingTypes.Type.Asset
|
const model = type === HoldingTypes.Type.Asset
|
||||||
? assetsModel
|
? assetsModel
|
||||||
: collectiblesModel
|
: collectiblesModel
|
||||||
const item = CommunityPermissionsHelpers.getTokenByKey(model, key)
|
const item = PermissionsHelpers.getTokenByKey(model, key)
|
||||||
|
|
||||||
return item ? item.shortName || item.name : ""
|
return item ? item.shortName || item.name : ""
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ SortFilterProxyModel {
|
||||||
function getText(type, key, amount) {
|
function getText(type, key, amount) {
|
||||||
const name = getName(type, key)
|
const name = getName(type, key)
|
||||||
|
|
||||||
return CommunityPermissionsHelpers.setHoldingsTextFormat(
|
return PermissionsHelpers.setHoldingsTextFormat(
|
||||||
type, name, amount)
|
type, name, amount)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ SortFilterProxyModel {
|
||||||
const model = type === HoldingTypes.Type.Asset
|
const model = type === HoldingTypes.Type.Asset
|
||||||
? assetsModel : collectiblesModel
|
? assetsModel : collectiblesModel
|
||||||
|
|
||||||
return CommunityPermissionsHelpers.getTokenIconByKey(model, key)
|
return PermissionsHelpers.getTokenIconByKey(model, key)
|
||||||
}
|
}
|
||||||
|
|
||||||
expression: {
|
expression: {
|
||||||
|
|
|
@ -78,7 +78,7 @@ StatusSectionLayout {
|
||||||
leftPanel: ColumnLayout {
|
leftPanel: ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
CommunityColumnHeaderPanel {
|
ColumnHeaderPanel {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
name: root.name
|
name: root.name
|
||||||
membersCount: root.membersCount
|
membersCount: root.membersCount
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
ChannelsSelectionModel 1.0 ChannelsSelectionModel.qml
|
ChannelsSelectionModel 1.0 ChannelsSelectionModel.qml
|
||||||
CommunityColumnView 1.0 CommunityColumnView.qml
|
CommunityColumnView 1.0 CommunityColumnView.qml
|
||||||
CommunitiesGridView 1.0 CommunitiesGridView.qml
|
CommunitiesGridView 1.0 CommunitiesGridView.qml
|
||||||
CommunityNewAirdropView 1.0 CommunityNewAirdropView.qml
|
|
||||||
CommunityMintedTokensView 1.0 CommunityMintedTokensView.qml
|
|
||||||
CommunityNewPermissionView 1.0 CommunityNewPermissionView.qml
|
|
||||||
CommunityNewTokenView 1.0 CommunityNewTokenView.qml
|
|
||||||
CommunityPermissionsView 1.0 CommunityPermissionsView.qml
|
|
||||||
CommunitySettingsView 1.0 CommunitySettingsView.qml
|
CommunitySettingsView 1.0 CommunitySettingsView.qml
|
||||||
CommunityTokenView 1.0 CommunityTokenView.qml
|
CommunityTokenView 1.0 CommunityTokenView.qml
|
||||||
CommunityWelcomeSettingsView 1.0 CommunityWelcomeSettingsView.qml
|
EditAirdropView 1.0 EditAirdropView.qml
|
||||||
|
EditPermissionView 1.0 EditPermissionView.qml
|
||||||
|
EditCommunityTokenView 1.0 EditCommunityTokenView.qml
|
||||||
HoldingsSelectionModel 1.0 HoldingsSelectionModel.qml
|
HoldingsSelectionModel 1.0 HoldingsSelectionModel.qml
|
||||||
JoinCommunityView 1.0 JoinCommunityView.qml
|
JoinCommunityView 1.0 JoinCommunityView.qml
|
||||||
|
MintedTokensView 1.0 MintedTokensView.qml
|
||||||
|
PermissionsView 1.0 PermissionsView.qml
|
||||||
|
WelcomeSettingsView 1.0 WelcomeSettingsView.qml
|
||||||
|
|
Loading…
Reference in New Issue