mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 12:43:06 +08:00
Fix error in inventories for new teams [SCI-3788] (#1992)
* Fix error in inventories for new teams * Replace with current team
This commit is contained in:
parent
b6661682ad
commit
a505ef2462
3 changed files with 4 additions and 5 deletions
|
@ -159,7 +159,7 @@
|
|||
initShareModal();
|
||||
});
|
||||
|
||||
$('#create-new-repository').initializeModal('#create-repo-modal');
|
||||
$('.create-new-repository').initializeModal('#create-repo-modal');
|
||||
loadRepositoryTab();
|
||||
initImportRecordsModal();
|
||||
}(window));
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
<% if can_create_repositories?(current_team) %>
|
||||
<li>
|
||||
<span class="tree-link link-wrap no-indent">
|
||||
<a class="sidebar-button" id="create-new-repository" data-remote="true"
|
||||
href="<%= create_modal_team_repositories_path(@repository.team) %>">
|
||||
<a class="sidebar-button create-new-repository" data-remote="true"
|
||||
href="<%= create_modal_team_repositories_path(current_team) %>">
|
||||
<span class="fas fa-plus"></span>
|
||||
<%= t('libraries.index.no_libraries.create_new_button') %>
|
||||
</a>
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
<% if can_create_repositories?(current_team) %>
|
||||
<h2><strong><%=t 'libraries.index.no_libraries.title' %><strong></h2>
|
||||
<br />
|
||||
<a class="btn btn-primary btn-lg"
|
||||
id="create-new-repository"
|
||||
<a class="btn btn-primary btn-lg create-new-repository"
|
||||
data-remote="true"
|
||||
href="<%= create_modal_team_repositories_path(current_team) %>">
|
||||
<span class="fas fa-plus"></span>
|
||||
|
|
Loading…
Reference in a new issue