From 9a7f4f0556500b2e44af21fc8eb87ff03df3de9f Mon Sep 17 00:00:00 2001 From: Andreas Pfohl Date: Wed, 6 Jul 2022 09:36:17 +0200 Subject: [PATCH] Added info/warning toast to storage OAuth application creation --- config/locales/en.yml | 1 + .../admin/storages/show_oauth_application.html.erb | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/config/locales/en.yml b/config/locales/en.yml index 0ca7b246fb..a0fca724f7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2450,6 +2450,7 @@ en: storage: not_available: "Disk storage consumption is not available for this repository." update_timeout: "Keep the last required disk space information for a repository for N minutes.\nAs counting the required disk space of a repository may be costly, increase this value to reduce performance impact." + oauth_application_details: "Please copy this values into the Nextcloud OpenProject Integration settings. The client secret value will not be accessible again after you close this window." subversion: existing_title: "Existing Subversion repository" existing_introduction: "If you have an existing Subversion repository, you can link it with OpenProject to access it from within the application." diff --git a/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb b/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb index 1c119f2d32..b304d3ef80 100644 --- a/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb +++ b/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb @@ -3,6 +3,15 @@ <% local_assigns[:additional_breadcrumb] = "#{t("storages.provider_types.#{@object.provider_type}")} #{t("storages.label_oauth_application_details")}" %> <%= toolbar title: "#{t("storages.provider_types.#{@object.provider_type}")} #{t("storages.label_oauth_application_details")}" %> +
+ + +
+

<%= t('repositories.storage.oauth_application_details') %>

+
+
+ <%= labelled_tabular_form_for @oauth_application, url: '/' do |f| -%>
<%= f.text_field :uid,