mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-01 01:14:30 +08:00
Fix SA notifications on step and item card [SCI-12247]
This commit is contained in:
parent
b3145f9caa
commit
001e0f8d27
3 changed files with 4 additions and 2 deletions
|
@ -52,7 +52,7 @@ class FormFieldValuesController < ApplicationController
|
||||||
smart_annotation_notification(
|
smart_annotation_notification(
|
||||||
old_text: @form_field_value.text_previously_was,
|
old_text: @form_field_value.text_previously_was,
|
||||||
new_text: @form_field_value.text,
|
new_text: @form_field_value.text,
|
||||||
subject: step.protocol,
|
subject: step,
|
||||||
title: t('notifications.form_field_value_title',
|
title: t('notifications.form_field_value_title',
|
||||||
user: current_user.full_name,
|
user: current_user.full_name,
|
||||||
field: @form_field_value.form_field.name,
|
field: @form_field_value.form_field.name,
|
||||||
|
|
|
@ -213,6 +213,8 @@ class RepositoryRowsController < ApplicationController
|
||||||
{ repository_row: @repository_row.id,
|
{ repository_row: @repository_row.id,
|
||||||
repository_column: update_params['repository_cells']&.keys&.first ||
|
repository_column: update_params['repository_cells']&.keys&.first ||
|
||||||
I18n.t('repositories.table.row_name') })
|
I18n.t('repositories.table.row_name') })
|
||||||
|
|
||||||
|
record_annotation_notification(@repository_row, row_cell_update.cell) if row_cell_update.cell.value_type == 'RepositoryTextValue'
|
||||||
end
|
end
|
||||||
@reminders_present = @repository_row.repository_cells.with_active_reminder(@current_user).any?
|
@reminders_present = @repository_row.repository_cells.with_active_reminder(@current_user).any?
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ module CommentHelper
|
||||||
smart_annotation_notification(
|
smart_annotation_notification(
|
||||||
old_text: old_text,
|
old_text: old_text,
|
||||||
new_text: comment.message,
|
new_text: comment.message,
|
||||||
subject: step.protocol,
|
subject: step,
|
||||||
title: t('notifications.step_comment_annotation_title',
|
title: t('notifications.step_comment_annotation_title',
|
||||||
step: step.name,
|
step: step.name,
|
||||||
user: current_user.full_name),
|
user: current_user.full_name),
|
||||||
|
|
Loading…
Add table
Reference in a new issue