fix(communities): join community button text instead of share all addresses to join text in membership setup dialog

Closes #14172
This commit is contained in:
Sale Djenic 2024-03-27 12:05:50 +01:00 committed by saledjenic
parent 9b8401b641
commit f8bb8e2588

View File

@ -152,13 +152,11 @@ StatusStackModal {
readonly property StatusButton shareAddressesButton: StatusButton {
text: {
if (root.accessType === Constants.communityChatOnRequestAccess) {
if (d.selectedSharedAddressesCount === d.totalNumOfAddressesForSharing) {
return qsTr("Share all addresses to join")
}
return qsTr("Share %n address(s) to join", "", d.selectedSharedAddressesCount)
if (d.selectedSharedAddressesCount === d.totalNumOfAddressesForSharing) {
return qsTr("Share all addresses to join")
}
return qsTr("Join %1").arg(root.communityName)
return qsTr("Share %n address(s) to join", "", d.selectedSharedAddressesCount)
}
type: StatusBaseButton.Type.Normal
icon.name: {