diff --git a/src/client/pages/FeedbackTarget/tabs/Logs/Logs.js b/src/client/pages/FeedbackTarget/tabs/Logs/Logs.js index 18553e608..ead9765da 100644 --- a/src/client/pages/FeedbackTarget/tabs/Logs/Logs.js +++ b/src/client/pages/FeedbackTarget/tabs/Logs/Logs.js @@ -77,6 +77,18 @@ const getLogMessage = data => { messages = messages.concat(`Sent feedback response email`) } + if (data.continuousFeedbackEnabled !== undefined) { + messages = data.continuousFeedbackEnabled + ? messages.concat(`Enabled continuous feedback`) + : messages.concat(`Disabled continuous feedback`) + } + + if (data.sendContinuousFeedbackDigestEmails !== undefined) { + messages = data.sendContinuousFeedbackDigestEmails + ? messages.concat(`Enabled continuous feedback digest mail`) + : messages.concat(`Disabled continuous feedback digest mail`) + } + if (data.mockedBy) { messages = messages.concat(`(Mocked by ${data.mockedBy})`) } diff --git a/src/server/services/auditLog/feedbackTargetLogs.js b/src/server/services/auditLog/feedbackTargetLogs.js index f39ac404e..a4fe2f05e 100644 --- a/src/server/services/auditLog/feedbackTargetLogs.js +++ b/src/server/services/auditLog/feedbackTargetLogs.js @@ -87,6 +87,14 @@ const createFeedbackTargetLog = async (feedbackTarget, updates, user) => { data.openImmediately = updates.openImmediately } + if (updates.continuousFeedbackEnabled !== undefined) { + data.continuousFeedbackEnabled = updates.continuousFeedbackEnabled + } + + if (updates.sendContinuousFeedbackDigestEmails !== undefined) { + data.sendContinuousFeedbackDigestEmails = updates.sendContinuousFeedbackDigestEmails + } + if (Object.keys(data).length === 0) return await createFromData(feedbackTarget.id, user, data)