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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#51372] add inline copy to clipboard button
Eric Schubert5d670aea6252
diff --git a/modules/storages/app/components/storages/admin/redirect_uri_component.html.erb b/modules/storages/app/components/storages/admin/redirect_uri_component.html.erbindex 86298e0812d..a3e2c2169ec 100644--- a/modules/storages/app/components/storages/admin/redirect_uri_component.html.erb+++ b/modules/storages/app/components/storages/admin/redirect_uri_component.html.erb@@ -4,13 +4,15 @@concat(render(Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: 'storage-redirect-uri-label')- ) { I18n.t("storages.file_storage_view.redirect_uri") }+ ) { I18n.t('storages.file_storage_view.redirect_uri') })concat(configuration_check_label_for(:storage_oauth_client_configured))endgrid.with_area(:description, tag: :div, color: :subtle, test_selector: 'storage-redirect-uri-description') do- render(Primer::Beta::Text.new) { provider_redirect_uri_description }+ concat(render(Primer::Beta::Text.new) { provider_redirect_uri_description })+ concat(render(Primer::Beta::ClipboardCopy.new('aria-label': I18n.t('storages.instructions.one_drive.copy_redirect_uri'),+ value: storage.oauth_client.redirect_uri)))endif editable_storage?diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.ymlindex ce1c90bb7d7..4e350c09a4c 100644--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@ -163,6 +163,7 @@ en:tenant_id_placeholder: "Name or UUID"drive_id: "Please copy the ID from the desired drive by following the steps in the %{drive_id_link_text}."documentation_link_text: "OneDrive/SharePoint file storages documentation"+ copy_redirect_uri: "Copy redirect URI"help_texts:project_folder: >The project folder is the default folder for file uploads for this project.