Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Added info/warning toast to storage OAuth application creation

Andreas Pfohl9a7f4f055650
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 0ca7b246fb4..a0fca724f73 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 1c119f2d329..b304d3ef80b 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")}" %>
+<div class="op-toast -warning">
+ <a title="{{ ::I18n.t('js.close_popup_title') }}"
+ class="op-toast--close icon-context icon-close">
+ </a>
+ <div class="op-toast--content">
+ <p><%= t('repositories.storage.oauth_application_details') %></p>
+ </div>
+</div>
+
<%= labelled_tabular_form_for @oauth_application, url: '/' do |f| -%>
<div class="form--field">
<%= f.text_field :uid,