From 98ef76d3c836ab5cba716dfba9a67cf11d84adc3 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 18 Mar 2021 13:58:17 -0400 Subject: [PATCH] chore: hide edit community button until the feature is implemented --- .../Chat/CommunityComponents/CommunityProfilePopup.qml | 5 +++-- .../CommunityComponents/CommunityProfilePopupOverview.qml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml index a3e6180dcc..ca6be68a2d 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml @@ -18,7 +18,7 @@ ModalPopup { property string communityColor: "" property int nbMembers: community.nbMembers property bool isAdmin: false - height: stack.currentItem.height + modalHeader.height + modalFooter.height + Style.current.padding*3 + height: stack.currentItem.height + modalHeader.height + modalFooter.height + Style.current.padding * 3 id: popup onClosed: { @@ -99,7 +99,8 @@ ModalPopup { StackView { id: stack initialItem: profileOverview - anchors.fill: parent + width: parent.width + pushEnter: Transition { enabled: false } pushExit: Transition { enabled: false } diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml index a0b6baa068..e7f8f8151d 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml @@ -205,7 +205,8 @@ Item { } Loader { - active: isAdmin + // TODO once Edit is vailable in the app, put back isAdmin + active: false//isAdmin width: parent.width sourceComponent: CommunityPopupButton { //% "Edit community"