Skip to content

Commit

Permalink
chore(key-manager): revert changes to make keymanagerng the default (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andypf authored Feb 25, 2025
1 parent 3bd164f commit b934d63
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 5 additions & 5 deletions config/navigations/services_navigation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
},
if:
lambda {
plugin_available?(:keymanagerng) or
plugin_available?(:key_manager) or
(plugin_available?(:identity) && services.available?(:identity) and
current_user &&
(
Expand Down Expand Up @@ -266,15 +266,15 @@
) && plugin_available?(:identity)
},
highlights_on: %r{identity/projects/groups/?.*}
access_management_nav.item :keymanagerng,
access_management_nav.item :key_manager,
'Key Manager',
-> { plugin('keymanagerng').root_path },
-> { plugin('key_manager').secrets_path },
if: lambda {
plugin_available?(:keymanagerng)
plugin_available?(:key_manager)
},
highlights_on:
proc {
params[:controller][%r{keymanagerng/.*}]
params[:controller][%r{key_manager/.*}]
}
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
= content_for :main_toolbar do
Key Manager

= javascript_include_tag "keymanagerng_app_widget", data: { url: plugin("keymanagerng").root_path }
.bs-callout.bs-callout-info.bs-callout-emphasize
%p
This is the new version of Key Manager. If you prefer to use the previous version, click
=link_to "here", plugin('key_manager').secrets_path, data: { target: 'nav-to-old-key-manager' }

= javascript_include_tag "keymanagerng_app_widget", data: { url: plugin("keymanagerng").root_path }

0 comments on commit b934d63

Please sign in to comment.