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:
aignatov-bio 2021-01-19 11:22:53 +01:00 committed by GitHub
parent 0a1abf83c6
commit bba1165c7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View file

@ -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">

View file

@ -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>

View file

@ -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