mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
Fix default state for archived repository [SCI-8435] (#5493)
This commit is contained in:
parent
6ce9e41c2f
commit
8d70fcf322
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@
|
||||||
<%= render partial: 'shared/state_view_switch', locals: {
|
<%= render partial: 'shared/state_view_switch', locals: {
|
||||||
disabled: @repository.archived?,
|
disabled: @repository.archived?,
|
||||||
switchable: true,
|
switchable: true,
|
||||||
archived: params[:archived],
|
archived: params[:archived] || @repository.archived?,
|
||||||
active_url: repository_path(@repository),
|
active_url: repository_path(@repository),
|
||||||
archived_url: repository_path(@repository, archived: true),
|
archived_url: repository_path(@repository, archived: true),
|
||||||
} %>
|
} %>
|
||||||
|
|
Loading…
Reference in a new issue