Test(Community) Object names added (#12127)

This commit is contained in:
Vladimir Druzhinin 2023-09-12 10:55:40 +02:00 committed by GitHub
parent 93a69893d9
commit 29665956f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -197,6 +197,7 @@ Item {
text: qsTr("Invite people") text: qsTr("Invite people")
icon.name: "share-ios" icon.name: "share-ios"
enabled: communityData.canManageUsers && adminPopupMenu.showInviteButton enabled: communityData.canManageUsers && adminPopupMenu.showInviteButton
objectName: "invitePeople"
onTriggered: { onTriggered: {
Global.openInviteFriendsToCommunityPopup(root.communityData, Global.openInviteFriendsToCommunityPopup(root.communityData,
root.communitySectionModule, root.communitySectionModule,
@ -276,6 +277,7 @@ Item {
text: qsTr("Invite people") text: qsTr("Invite people")
icon.name: "share-ios" icon.name: "share-ios"
enabled: communityData.canManageUsers enabled: communityData.canManageUsers
objectName: "invitePeople"
onTriggered: { onTriggered: {
Global.openInviteFriendsToCommunityPopup(root.communityData, Global.openInviteFriendsToCommunityPopup(root.communityData,
root.communitySectionModule, root.communitySectionModule,

View File

@ -114,6 +114,7 @@ StatusListView {
moreMenu.close() moreMenu.close()
root.inviteFriends(model) root.inviteFriends(model)
} }
objectName: "invitePeople"
} }
StatusAction { StatusAction {
text: qsTr("Edit Shared Addresses") text: qsTr("Edit Shared Addresses")

View File

@ -495,6 +495,7 @@ Item {
text: qsTr("Invite People") text: qsTr("Invite People")
icon.name: "share-ios" icon.name: "share-ios"
enabled: model.canManageUsers enabled: model.canManageUsers
objectName: "invitePeople"
onTriggered: { onTriggered: {
popups.openInviteFriendsToCommunityPopup(model, popups.openInviteFriendsToCommunityPopup(model,
communityContextMenu.chatCommunitySectionModule, communityContextMenu.chatCommunitySectionModule,

View File

@ -144,7 +144,7 @@ Control {
StatusBaseText { StatusBaseText {
Layout.fillWidth: true Layout.fillWidth: true
objectName: "communityName"
text: d.communityName text: d.communityName
font.weight: Font.Bold font.weight: Font.Bold
wrapMode: Text.WrapAtWordBoundaryOrAnywhere wrapMode: Text.WrapAtWordBoundaryOrAnywhere
@ -154,7 +154,7 @@ Control {
StatusBaseText { StatusBaseText {
Layout.fillWidth: true Layout.fillWidth: true
objectName: "communityDescription"
text: d.communityDescription text: d.communityDescription
wrapMode: Text.WrapAtWordBoundaryOrAnywhere wrapMode: Text.WrapAtWordBoundaryOrAnywhere
color: Theme.palette.directColor1 color: Theme.palette.directColor1
@ -162,7 +162,7 @@ Control {
StatusBaseText { StatusBaseText {
Layout.fillWidth: true Layout.fillWidth: true
objectName: "communityMembers"
text: qsTr("%n member(s)", "", d.communityNbMembers) text: qsTr("%n member(s)", "", d.communityNbMembers)
font.pixelSize: 13 font.pixelSize: 13
font.weight: Font.Medium font.weight: Font.Medium