parent
8607251a6e
commit
63b5c549b9
|
@ -180,6 +180,9 @@ QtObject:
|
||||||
if (self.activeCommunity.active and self.activeCommunity.communityItem.id == community.id):
|
if (self.activeCommunity.active and self.activeCommunity.communityItem.id == community.id):
|
||||||
self.activeCommunity.setCommunityItem(community)
|
self.activeCommunity.setCommunityItem(community)
|
||||||
|
|
||||||
|
if (self.observedCommunity.communityItem.id == community.id):
|
||||||
|
self.observedCommunity.setCommunityItem(community)
|
||||||
|
|
||||||
if (community.joined == true):
|
if (community.joined == true):
|
||||||
let joinedCommunityCheck = self.joinedCommunityList.getCommunityById(community.id)
|
let joinedCommunityCheck = self.joinedCommunityList.getCommunityById(community.id)
|
||||||
if (joinedCommunityCheck.id == ""):
|
if (joinedCommunityCheck.id == ""):
|
||||||
|
|
|
@ -141,9 +141,9 @@ Item {
|
||||||
anchors.top: sep2.bottom
|
anchors.top: sep2.bottom
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 44
|
height: 44
|
||||||
enabled: !invitedCommunity.joined
|
enabled: !invitedCommunity.joined && !root.joined
|
||||||
//% "Joined"
|
//% "Joined"
|
||||||
text: root.joined || invitedCommunity.joined ? qsTrId("joined") :
|
text: root.joined || invitedCommunity.joined || invitedCommunity.isMember ? qsTrId("joined") :
|
||||||
//% "Join"
|
//% "Join"
|
||||||
qsTrId("join")
|
qsTrId("join")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
Loading…
Reference in New Issue