mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 03:46:39 +08:00
Fix state for bmt repository [SCI-6089] (#3758)
Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
parent
0db2023baa
commit
5512db18f0
3 changed files with 7 additions and 6 deletions
|
@ -5,9 +5,9 @@ class BmtRepository < LinkedRepository
|
|||
|
||||
def default_table_state
|
||||
state = Constants::REPOSITORY_TABLE_DEFAULT_STATE.deep_dup
|
||||
state['order'] = [[3, 'asc']]
|
||||
state['ColReorder'] << state['ColReorder'].length
|
||||
state['columns'].pop(1)
|
||||
state['columns'].insert(1, Constants::REPOSITORY_TABLE_STATE_CUSTOM_COLUMN_TEMPLATE)
|
||||
state['order'] = [[3, 'asc']]
|
||||
state
|
||||
end
|
||||
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
</div>
|
||||
</th>
|
||||
<th id="assigned"><%= t("repositories.table.assigned") %></th>
|
||||
<% if @repository.is_a?(LinkedRepository) %>
|
||||
<th id="row-external-id"><%= t('repositories.table.external_id') %></th>
|
||||
<% end %>
|
||||
<th id="row-id"><%= t("repositories.table.id") %></th>
|
||||
<th id="row-name"><%= t("repositories.table.row_name") %></th>
|
||||
<th id="added-on"><%= t("repositories.table.added_on") %></th>
|
||||
|
|
|
@ -40,10 +40,8 @@
|
|||
<th id="row-name"><%= t("repositories.table.row_name") %></th>
|
||||
<th id="added-on" ><%= t("repositories.table.added_on") %></th>
|
||||
<th id="added-by" ><%= t("repositories.table.added_by") %></th>
|
||||
<% unless @repository.is_a?(BmtRepository) %>
|
||||
<th id="archived-on"><%= t("repositories.table.archived_on") %></th>
|
||||
<th id="archived-by"><%= t("repositories.table.archived_by") %></th>
|
||||
<% end %>
|
||||
<th id="archived-on"><%= t("repositories.table.archived_on") %></th>
|
||||
<th id="archived-by"><%= t("repositories.table.archived_by") %></th>
|
||||
<% repository.repository_columns.order(:id).each do |column| %>
|
||||
<th
|
||||
class="repository-column"
|
||||
|
|
Loading…
Add table
Reference in a new issue