mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-23 04:50:28 +00:00
fix(ActivityChannelBadgePanel): ensure loading badge components works
QML is complaining that it can't assign the types to `sourceComponent`, so this commit wraps them in `Component` types to mitigate that.
This commit is contained in:
parent
a95348b289
commit
193b42ed54
@ -51,40 +51,46 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ActivityCenter.ReplyComponent {
|
Component {
|
||||||
id: replyComponent
|
id: replyComponent
|
||||||
width: childrenRect.width
|
ActivityCenter.ReplyComponent {
|
||||||
height: parent.height
|
width: childrenRect.width
|
||||||
replyMessageIndex: wrapper.replyMessageIndex
|
height: parent.height
|
||||||
repliedMessageContent: wrapper.repliedMessageContent
|
replyMessageIndex: wrapper.replyMessageIndex
|
||||||
|
repliedMessageContent: wrapper.repliedMessageContent
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ActivityCenter.CommunityBadge {
|
Component {
|
||||||
id: communityBadgeComponent
|
id: communityBadgeComponent
|
||||||
width: childrenRect.width
|
ActivityCenter.CommunityBadge {
|
||||||
height: parent.height
|
width: childrenRect.width
|
||||||
|
height: parent.height
|
||||||
|
|
||||||
textColor: wrapper.textColor
|
textColor: wrapper.textColor
|
||||||
image: wrapper.communityThumbnailImage
|
image: wrapper.communityThumbnailImage
|
||||||
iconColor: wrapper.communityColor
|
iconColor: wrapper.communityColor
|
||||||
communityName: wrapper.communityName
|
communityName: wrapper.communityName
|
||||||
channelName: wrapper.channelName
|
channelName: wrapper.channelName
|
||||||
name: wrapper.name
|
name: wrapper.name
|
||||||
|
|
||||||
onCommunityNameClicked: communityNameClicked()
|
onCommunityNameClicked: communityNameClicked()
|
||||||
onChannelNameClicked: channelNameClicked()
|
onChannelNameClicked: channelNameClicked()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ActivityCenter.ChannelBadge {
|
Component {
|
||||||
id: channelBadgeComponent
|
id: channelBadgeComponent
|
||||||
width: childrenRect.width
|
ActivityCenter.ChannelBadge {
|
||||||
height: parent.height
|
width: childrenRect.width
|
||||||
|
height: parent.height
|
||||||
|
|
||||||
realChatType: wrapper.realChatType
|
realChatType: wrapper.realChatType
|
||||||
textColor: wrapper.textColor
|
textColor: wrapper.textColor
|
||||||
name: wrapper.name
|
name: wrapper.name
|
||||||
chatId: wrapper.chatId
|
chatId: wrapper.chatId
|
||||||
profileImage: wrapper.profileImage
|
profileImage: wrapper.profileImage
|
||||||
identicon: wrapper.identicon
|
identicon: wrapper.identicon
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user