mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
logic update | removed automatic redirection
This commit is contained in:
parent
082745a3dc
commit
c9a6af8de4
2 changed files with 1 additions and 2 deletions
|
@ -89,7 +89,6 @@ class ExperimentsController < ApplicationController
|
|||
end
|
||||
|
||||
def table
|
||||
redirect_to module_archive_experiment_path(@experiment) if @experiment.archived_branch?
|
||||
view_state = @experiment.current_view_state(current_user)
|
||||
view_mode = params[:view_mode] || 'active'
|
||||
@current_sort = view_state.state.dig('my_modules', view_mode, 'sort') || 'atoz'
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<% end %>
|
||||
|
||||
<% if (action_name == 'module_archive' || params[:view_mode] == 'archived') %>
|
||||
<% unless @experiment.my_modules.active.count.zero? %>
|
||||
<% unless @experiment.archived_branch? %>
|
||||
<div role="separator" class="divider"></div>
|
||||
<li>
|
||||
<%= link_to action_name == 'table' ? table_experiment_path(@experiment) : canvas_experiment_path(@experiment) do %>
|
||||
|
|
Loading…
Reference in a new issue