mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Fix edit button for folder in archive mode [SCI-5418] (#3096)
* Fix edit button for folder in archive mode [SCI-5418] * Remove archive folder from routes [SCI-5418]
This commit is contained in:
parent
0a1abf83c6
commit
bba1165c7b
3 changed files with 3 additions and 6 deletions
|
@ -3,8 +3,8 @@
|
|||
data-edit-url="<%= edit_project_folder_path(folder) %>"
|
||||
data-editable="<%= can_update_team?(current_team) %>"
|
||||
data-moveable="<%= can_update_team?(current_team) %>"
|
||||
data-archivable="<%= folder.active? && can_update_team?(current_team) %>"
|
||||
data-restorable="<%= folder.archived? && can_update_team?(current_team) %>">
|
||||
data-archivable="false"
|
||||
data-restorable="false">
|
||||
<div class="checkbox-cell">
|
||||
<div class="sci-checkbox-container">
|
||||
<input value="1" type="checkbox" class="sci-checkbox folder-card-selector">
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<span class="hidden-xs"><%= t('projects.index.new_folder') %></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<a href="#" class="btn btn-light edit-btn single-object-action hidden" data-for="editable" data-view-mode="active">
|
||||
<a href="#" class="btn btn-light edit-btn single-object-action hidden" data-for="editable">
|
||||
<span class="fas fa-folder" aria-hidden="true"></span>
|
||||
<span class="hidden-xs"><%= t('projects.index.edit_button') %></span>
|
||||
</a>
|
||||
|
|
|
@ -302,9 +302,6 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
resources :project_folders, only: %i(create new update edit) do
|
||||
member do
|
||||
post 'archive', to: 'project_folders#archive'
|
||||
end
|
||||
get 'cards', to: 'projects#cards'
|
||||
|
||||
collection do
|
||||
|
|
Loading…
Reference in a new issue