mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-20 02:28:56 +00:00
fix: fix chatIdentifier binding loop
This commit is contained in:
parent
b245d858aa
commit
b773766055
@ -2,18 +2,18 @@ import QtQuick 2.3
|
|||||||
import "../../../../../shared"
|
import "../../../../../shared"
|
||||||
import "../../../../../imports"
|
import "../../../../../imports"
|
||||||
|
|
||||||
Item {
|
Column {
|
||||||
property string authorCurrentMsg: "authorCurrentMsg"
|
property string authorCurrentMsg: "authorCurrentMsg"
|
||||||
property int verticalMargin: 50
|
property int verticalMargin: 50
|
||||||
|
|
||||||
property string profileImage
|
property string profileImage
|
||||||
|
|
||||||
id: channelIdentifier
|
id: channelIdentifier
|
||||||
|
spacing: Style.current.padding
|
||||||
visible: authorCurrentMsg === ""
|
visible: authorCurrentMsg === ""
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: this.visible ? verticalMargin : 0
|
anchors.topMargin: this.visible ? verticalMargin : 0
|
||||||
height: this.visible ? childrenRect.height + verticalMargin : 0
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: circleId
|
id: circleId
|
||||||
@ -66,8 +66,6 @@ Item {
|
|||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
font.pixelSize: 22
|
font.pixelSize: 22
|
||||||
color: Style.current.textColor
|
color: Style.current.textColor
|
||||||
anchors.top: circleId.bottom
|
|
||||||
anchors.topMargin: 16
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,8 +75,6 @@ Item {
|
|||||||
width: visible ? 330 : 0
|
width: visible ? 330 : 0
|
||||||
height: visible ? childrenRect.height : 0
|
height: visible ? childrenRect.height : 0
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.top: channelName.bottom
|
|
||||||
anchors.topMargin: 16
|
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: descText
|
id: descText
|
||||||
@ -101,9 +97,8 @@ Item {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
visible: chatsModel.activeChannel.chatType === Constants.chatTypePrivateGroupChat && !chatsModel.activeChannel.isMember
|
visible: chatsModel.activeChannel.chatType === Constants.chatTypePrivateGroupChat && !chatsModel.activeChannel.isMember
|
||||||
anchors.top: channelDescription.bottom
|
|
||||||
anchors.topMargin: 16
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
width: joinChat.width
|
||||||
height: visible ? 100 : 10
|
height: visible ? 100 : 10
|
||||||
id: joinOrDecline
|
id: joinOrDecline
|
||||||
|
|
||||||
@ -142,6 +137,14 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: spacer
|
||||||
|
visible: chatsModel.activeChannel.chatType === Constants.chatTypePrivateGroupChat && chatsModel.activeChannel.isMember
|
||||||
|
width: parent.width
|
||||||
|
height: Style.current.bigPadding
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*##^##
|
/*##^##
|
||||||
|
Loading…
x
Reference in New Issue
Block a user