Added info/warning toast to storage OAuth application creation

pull/10889/head
Andreas Pfohl 2 years ago
parent 2bcdf51f7a
commit 9a7f4f0556
No known key found for this signature in database
GPG Key ID: FF58F3B771328EB4
  1. 1
      config/locales/en.yml
  2. 9
      modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb

@ -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."

@ -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,

Loading…
Cancel
Save