mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
3527c409af
* Hide reminders for archived repositories [SCI-6609] * Always pass repository in datatable helper [SCI-6609]
10 lines
349 B
Ruby
10 lines
349 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.draw @draw
|
|
json.data do
|
|
json.array! prepare_simple_view_row_columns(
|
|
@repository_rows, @repository, @my_module, { include_stock_consumption: @repository.has_stock_management? }
|
|
)
|
|
end
|
|
json.recordsFiltered @repository_rows.first ? @repository_rows.first.filtered_count : 0
|
|
json.recordsTotal @all_rows_count
|