From a27eb18670621af70f40672c46e9713f5b317010 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 9 Nov 2023 01:20:28 +0200 Subject: [PATCH] add api link to settings --- app/views/shared/_settings_nav.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_settings_nav.html.erb b/app/views/shared/_settings_nav.html.erb index 29c21897..17066280 100644 --- a/app/views/shared/_settings_nav.html.erb +++ b/app/views/shared/_settings_nav.html.erb @@ -77,8 +77,8 @@ <% end %> <% if !Docuseal.demo? && can?(:manage, EncryptedConfig) %>
  • - <%= link_to Docuseal.multitenant? ? console_redirect_index_path : "#{Docuseal::CONSOLE_URL}/on_premise", class: 'text-base hover:bg-base-300', data: { prefetch: false } do %> - Console + <%= link_to Docuseal.multitenant? ? console_redirect_index_path(redir: "#{Docuseal::CONSOLE_URL}/api") : "#{Docuseal::CONSOLE_URL}/on_premise", class: 'text-base hover:bg-base-300', data: { prefetch: false } do %> + <% if Docuseal.multitenant? %> API <% else %> Console <% end %> <% end %>
  • <% end %>