mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[web] set up types for mentions (#35609)
GitOrigin-RevId: 70ebe11659072a7df09be916d7a01cfd87b73c81
This commit is contained in:
+4
@@ -26,6 +26,7 @@ function levelToPreferences(
|
||||
commentOnInvitedProject: true,
|
||||
repliesOnAuthoredThread: true,
|
||||
repliesOnParticipatingThread: true,
|
||||
mentionsInThread: true,
|
||||
commentResolvedOnAuthoredThread: true,
|
||||
commentResolvedOnParticipatingThread: true,
|
||||
commentReopenedOnAuthoredThread: true,
|
||||
@@ -41,6 +42,7 @@ function levelToPreferences(
|
||||
commentOnInvitedProject: false,
|
||||
repliesOnAuthoredThread: true,
|
||||
repliesOnParticipatingThread: true,
|
||||
mentionsInThread: true,
|
||||
commentResolvedOnAuthoredThread: true,
|
||||
commentResolvedOnParticipatingThread: true,
|
||||
commentReopenedOnAuthoredThread: true,
|
||||
@@ -56,6 +58,7 @@ function levelToPreferences(
|
||||
commentOnInvitedProject: false,
|
||||
repliesOnAuthoredThread: false,
|
||||
repliesOnParticipatingThread: false,
|
||||
mentionsInThread: false,
|
||||
commentResolvedOnAuthoredThread: false,
|
||||
commentResolvedOnParticipatingThread: false,
|
||||
commentReopenedOnAuthoredThread: false,
|
||||
@@ -93,6 +96,7 @@ function preferencesToLevel(
|
||||
const anyParticipantNotifications =
|
||||
preferences.repliesOnAuthoredThread ||
|
||||
preferences.repliesOnParticipatingThread ||
|
||||
preferences.mentionsInThread ||
|
||||
preferences.trackChangesAcceptedOnAuthoredChange ||
|
||||
preferences.trackChangesRejectedOnAuthoredChange ||
|
||||
preferences.commentResolvedOnAuthoredThread ||
|
||||
|
||||
+3
@@ -13,6 +13,7 @@ const allNotificationsOn = {
|
||||
commentOnInvitedProject: true,
|
||||
repliesOnAuthoredThread: true,
|
||||
repliesOnParticipatingThread: true,
|
||||
mentionsInThread: true,
|
||||
commentResolvedOnAuthoredThread: true,
|
||||
commentResolvedOnParticipatingThread: true,
|
||||
commentReopenedOnAuthoredThread: true,
|
||||
@@ -28,6 +29,7 @@ const repliesOnlyPreferences = {
|
||||
commentOnInvitedProject: false,
|
||||
repliesOnAuthoredThread: true,
|
||||
repliesOnParticipatingThread: true,
|
||||
mentionsInThread: true,
|
||||
commentResolvedOnAuthoredThread: true,
|
||||
commentResolvedOnParticipatingThread: true,
|
||||
commentReopenedOnAuthoredThread: true,
|
||||
@@ -59,6 +61,7 @@ const allNotificationsOff = {
|
||||
commentOnInvitedProject: false,
|
||||
repliesOnAuthoredThread: false,
|
||||
repliesOnParticipatingThread: false,
|
||||
mentionsInThread: false,
|
||||
commentResolvedOnAuthoredThread: false,
|
||||
commentResolvedOnParticipatingThread: false,
|
||||
commentReopenedOnAuthoredThread: false,
|
||||
|
||||
Reference in New Issue
Block a user