From 93b4c2906024540f9ca5ba191beb0477ebf02ced Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 11 Jun 2021 16:34:25 -0400 Subject: [PATCH] fix typo --- ui/app/AppLayouts/Chat/ChatColumn/ActivityCenter.qml | 12 ++++++------ .../ChatComponents/ActivityChannelBadge.qml | 4 ++-- ui/imports/Constants.qml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ChatColumn/ActivityCenter.qml b/ui/app/AppLayouts/Chat/ChatColumn/ActivityCenter.qml index 53c6cb31f4..e7c75d93b0 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/ActivityCenter.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/ActivityCenter.qml @@ -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 diff --git a/ui/app/AppLayouts/Chat/ChatColumn/ChatComponents/ActivityChannelBadge.qml b/ui/app/AppLayouts/Chat/ChatColumn/ChatComponents/ActivityChannelBadge.qml index 2d9d334232..93fc54786c 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/ChatComponents/ActivityChannelBadge.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/ChatComponents/ActivityChannelBadge.qml @@ -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 } } diff --git a/ui/imports/Constants.qml b/ui/imports/Constants.qml index 57e2961d73..943afdb757 100644 --- a/ui/imports/Constants.qml +++ b/ui/imports/Constants.qml @@ -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