diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml index 60270456f9..e95ea6ada6 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml @@ -62,6 +62,7 @@ Button { communityProfilePopup.description = chatsModel.communities.activeCommunity.description; communityProfilePopup.access = chatsModel.communities.activeCommunity.access; communityProfilePopup.nbMembers = chatsModel.communities.activeCommunity.nbMembers; + communityProfilePopup.isAdmin = chatsModel.communities.activeCommunity.admin communityProfilePopup.open(); } hoverEnabled: true diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml index 85d6fdc223..6835948b68 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml @@ -16,7 +16,7 @@ ModalPopup { // TODO get the real image once it's available property string source: "../../../img/ens-header-dark@2x.png" property int nbMembers: community.nbMembers - property bool isAdmin: true // TODO: + property bool isAdmin: false height: (isAdmin ? 600 : 590) + descriptionText.height id: popup diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityWelcomeBanner.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityWelcomeBanner.qml index 50aa3b0c13..9255185acb 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityWelcomeBanner.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityWelcomeBanner.qml @@ -94,6 +94,7 @@ Rectangle { communityProfilePopup.description = chatsModel.communities.activeCommunity.description; communityProfilePopup.access = chatsModel.communities.activeCommunity.access; communityProfilePopup.nbMembers = chatsModel.communities.activeCommunity.nbMembers; + communityProfilePopup.isAdmin = chatsModel.communities.activeCommunity.admin; communityProfilePopup.open() } }