mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 12:43:06 +08:00
Merge pull request #1507 from jbargu/jg_sci_2930_navigation_changed
Add action_name to sidebar cache as dependency [SCI-2930]
This commit is contained in:
commit
fb533eb9d3
3 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
|||
data-current-task="<%= current_task&.id %>">
|
||||
<div class="tree">
|
||||
<ul>
|
||||
<% cache [current_user, current_team] do %>
|
||||
<% cache [action_name, current_user, current_team] do %>
|
||||
<%= render partial: 'shared/sidebar/projects' %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<% if project.active_experiments.present? %>
|
||||
<ul>
|
||||
<% project.active_experiments.each do |experiment| %>
|
||||
<% cache [current_user, experiment] do %>
|
||||
<% cache [action_name, current_user, experiment] do %>
|
||||
<li data-parent="candidate" data-experiment-id="<%= experiment.id %>">
|
||||
<span class="tree-link line-wrap first-indent">
|
||||
<i class="no-arrow"></i>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<ul>
|
||||
<% @projects_tree.each do |project| %>
|
||||
<% cache [current_user, project] do %>
|
||||
<% cache [action_name, current_user, project] do %>
|
||||
<li data-parent="candidate" data-project-id="<%= project.id %>">
|
||||
<span class="tree-link line-wrap no-indent">
|
||||
<i class="no-arrow"></i>
|
||||
|
|
Loading…
Reference in a new issue