2022-10-05 14:51:42 +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 utils 1.0
|
|
|
|
|
|
|
|
import "../controls"
|
|
|
|
|
|
|
|
ActivityNotificationMessage {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
badgeComponent: CommunityBadge {
|
|
|
|
id: communityBadge
|
|
|
|
|
2022-10-20 11:57:41 +00:00
|
|
|
readonly property var community: root.store.getCommunityDetailsAsJson(notification.message.communityId)
|
2022-10-05 14:51:42 +00:00
|
|
|
|
|
|
|
communityName: community.name
|
|
|
|
communityImage: community.image
|
|
|
|
communityColor: community.color
|
|
|
|
|
|
|
|
onCommunityNameClicked: {
|
|
|
|
root.store.setActiveCommunity(notification.message.communityId)
|
2022-11-16 17:17:38 +00:00
|
|
|
root.closeActivityCenter()
|
2022-10-05 14:51:42 +00:00
|
|
|
}
|
|
|
|
onChannelNameClicked: {
|
2022-10-26 16:00:20 +00:00
|
|
|
root.activityCenterStore.switchTo(notification)
|
2022-11-16 17:17:38 +00:00
|
|
|
root.closeActivityCenter()
|
2022-10-05 14:51:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|