This commit is contained in:
Jonathan Rainville 2021-06-11 16:34:25 -04:00
parent e27c66d8af
commit 93b4c29060
3 changed files with 10 additions and 10 deletions

View File

@ -119,13 +119,13 @@ Popup {
Component.onCompleted: {
switch (model.notificationType) {
case Constants.acitivtyCenterNotificationTypeMention:
case Constants.activityCenterNotificationTypeMention:
if (!hasMentions) {
hasMentions = true
}
break
case Constants.acitivtyCenterNotificationTypeReply:
case Constants.activityCenterNotificationTypeReply:
if (!hasReplies) {
hasReplies = true
}
@ -142,8 +142,8 @@ Popup {
height: active && item.visible ? item.height : 0
sourceComponent: {
switch (model.notificationType) {
case Constants.acitivtyCenterNotificationTypeMention:return messageNotificationComponent
case Constants.acitivtyCenterNotificationTypeReply: return messageNotificationComponent
case Constants.activityCenterNotificationTypeMention:return messageNotificationComponent
case Constants.activityCenterNotificationTypeReply: return messageNotificationComponent
default: return null
}
}
@ -159,8 +159,8 @@ Popup {
}
return activityCenter.currentFilter === ActivityCenter.Filter.All ||
(model.notificationType === Constants.acitivtyCenterNotificationTypeMention && activityCenter.currentFilter === ActivityCenter.Filter.Mentions) ||
(model.notificationType === Constants.acitivtyCenterNotificationTypeReply && activityCenter.currentFilter === ActivityCenter.Filter.Replies)
(model.notificationType === Constants.activityCenterNotificationTypeMention && activityCenter.currentFilter === ActivityCenter.Filter.Mentions) ||
(model.notificationType === Constants.activityCenterNotificationTypeReply && activityCenter.currentFilter === ActivityCenter.Filter.Replies)
}
width: parent.width
height: childrenRect.height + Style.current.smallPadding

View File

@ -34,8 +34,8 @@ Rectangle {
height: parent.height
sourceComponent: {
switch (model.notificationType) {
case Constants.acitivtyCenterNotificationTypeMention: return channelComponent
case Constants.acitivtyCenterNotificationTypeReply: return replyComponent
case Constants.activityCenterNotificationTypeMention: return channelComponent
case Constants.activityCenterNotificationTypeReply: return replyComponent
default: return channelComponent
}
}

View File

@ -14,8 +14,8 @@ QtObject {
readonly property int communityChatOnRequestAccess: 3
readonly property int acitivtyCenterNotificationTypeMention: 3
readonly property int acitivtyCenterNotificationTypeReply: 4
readonly property int activityCenterNotificationTypeMention: 3
readonly property int activityCenterNotificationTypeReply: 4
readonly property int maxNbDaysToFetch: 30
readonly property int fetchRangeLast24Hours: 86400