diff --git a/app/views/protocols/protocolsio_import_save.js.erb b/app/views/protocols/protocolsio_import_save.js.erb index 16ad30454..830ebafbf 100644 --- a/app/views/protocols/protocolsio_import_save.js.erb +++ b/app/views/protocols/protocolsio_import_save.js.erb @@ -1,8 +1,9 @@ <% if @protocolsio_general_error %> - alert('<%= I18n.t('my_modules.protocols.load_from_file_protocol_general_error', + alert('<%= t('my_modules.protocols.load_from_file_protocol_general_error', max: Constants::NAME_MAX_LENGTH, min: Constants::NAME_MIN_LENGTH) %>'); <% else %> $('#modal-import-json-protocol-preview').modal('hide'); $('#protocols_io_form').trigger("reset"); protocolsDatatable.ajax.reload(); + HelperModule.flashAlertMsg('<%= t('protocols.index.import_results.message_ok_pio')%>', 'success'); <% end %>