2022-10-18 19:46:57 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
|
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
|
|
|
import shared.controls 1.0
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import "../controls"
|
|
|
|
|
|
|
|
ActivityNotificationBase {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
bodyComponent: RowLayout {
|
2023-02-15 12:24:18 +00:00
|
|
|
width: parent.width
|
2022-10-19 12:56:00 +00:00
|
|
|
height: 50
|
2022-11-30 11:15:29 +00:00
|
|
|
readonly property var community: notification ?
|
|
|
|
root.store.getCommunityDetailsAsJson(notification.communityId) :
|
|
|
|
null
|
2022-10-18 19:46:57 +00:00
|
|
|
|
|
|
|
StatusSmartIdenticon {
|
|
|
|
id: identicon
|
2022-11-30 11:15:29 +00:00
|
|
|
name: community ? community.name : ""
|
|
|
|
asset.name: community ? community.image : ""
|
|
|
|
asset.color: community ? community.color : "black"
|
2022-10-18 19:46:57 +00:00
|
|
|
asset.width: 40
|
|
|
|
asset.height: 40
|
|
|
|
asset.letterSize: width / 2.4
|
|
|
|
asset.isImage: true
|
2022-10-19 12:56:00 +00:00
|
|
|
Layout.alignment: Qt.AlignVCenter
|
2022-10-18 19:46:57 +00:00
|
|
|
Layout.leftMargin: Style.current.padding
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
text: qsTr("You were kicked from")
|
|
|
|
font.pixelSize: 15
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
}
|
|
|
|
|
|
|
|
CommunityBadge {
|
2022-11-30 11:15:29 +00:00
|
|
|
communityName: community ? community.name : ""
|
|
|
|
communityImage: community ? community.image : ""
|
|
|
|
communityColor: community ? community.color : "black"
|
2022-10-18 19:46:57 +00:00
|
|
|
onCommunityNameClicked: root.store.setActiveCommunity(notification.communityId)
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
2023-02-15 12:24:18 +00:00
|
|
|
Layout.maximumWidth: 190
|
2022-10-18 19:46:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|