mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-18 05:20:54 +08:00
adds hooks in team switch [fixes SCI-1092]
This commit is contained in:
parent
b2521a895b
commit
70f17a924e
1 changed files with 6 additions and 3 deletions
|
@ -86,7 +86,8 @@
|
|||
</span>
|
||||
</a>
|
||||
|
||||
<ul class="dropdown-menu ">
|
||||
<ul class="dropdown-menu"
|
||||
data-hook="teams-dropdown">
|
||||
<%= form_for(current_user,
|
||||
url: user_current_team_path,
|
||||
method: :post) do |f| %>
|
||||
|
@ -103,9 +104,11 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
<% if current_user.teams.length > 1 %>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li data-hook="new-team-btn"
|
||||
role="separator"
|
||||
class="divider"></li>
|
||||
<% end %>
|
||||
<li>
|
||||
<li data-hook="new-team-btn">
|
||||
<%= link_to new_team_path do %>
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
<%= t('users.settings.teams.index.new_team') %>
|
||||
|
|
Loading…
Reference in a new issue