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
chore[Op#56922]: update hidden preview
Kabiru Mwenja16163020f45b
diff --git a/lookbook/previews/open_project/storages/admin/oauth_access_grant_nudge_modal_component_preview.rb b/lookbook/previews/open_project/storages/admin/oauth_access_grant_nudge_modal_component_preview.rbindex ffeb552e93b..4985cae3ee6 100644--- a/lookbook/previews/open_project/storages/admin/oauth_access_grant_nudge_modal_component_preview.rb+++ b/lookbook/previews/open_project/storages/admin/oauth_access_grant_nudge_modal_component_preview.rb@@ -2,11 +2,10 @@ module OpenProject::Storagesmodule Admin# @hiddenclass OAuthAccessGrantNudgeModalComponentPreview < Lookbook::Preview- # Renders a oauth access grant nudge modal component- # @param authorized toggle Denotes whether access has been granted and renders a success state- def default(authorized: false)- project_storage = FactoryBot.build_stubbed(:project_storage)- render_with_template(locals: { project_storage:, authorized:, confirm_button_url: "#" })+ # Renders an oauth access grant nudge modal component+ def default+ storage = FactoryBot.build_stubbed(:nextcloud_storage)+ render_with_template(locals: { storage:, confirm_button_url: "#" })endendenddiff --git a/lookbook/previews/open_project/storages/admin/oauth_access_grant_nudge_modal_component_preview/default.html.erb b/lookbook/previews/open_project/storages/admin/oauth_access_grant_nudge_modal_component_preview/default.html.erbindex 9950e6f4150..e1c5a3c3889 100644--- a/lookbook/previews/open_project/storages/admin/oauth_access_grant_nudge_modal_component_preview/default.html.erb+++ b/lookbook/previews/open_project/storages/admin/oauth_access_grant_nudge_modal_component_preview/default.html.erb@@ -1,4 +1,4 @@<p><strong>Default</strong><br/>- <%= render(Storages::Admin::OAuthAccessGrantNudgeModalComponent.new(project_storage:, authorized:, confirm_button_url:)) %>+ <%= render(Storages::Admin::Storages::OAuthAccessGrantNudgeModalComponent.new(storage:, confirm_button_url:)) %></p>diff --git a/modules/storages/app/components/storages/admin/storages/oauth_access_grant_nudge_modal_component.rb b/modules/storages/app/components/storages/admin/storages/oauth_access_grant_nudge_modal_component.rbindex 351c386fd51..4cc227fd8c2 100644--- a/modules/storages/app/components/storages/admin/storages/oauth_access_grant_nudge_modal_component.rb+++ b/modules/storages/app/components/storages/admin/storages/oauth_access_grant_nudge_modal_component.rb@@ -64,7 +64,8 @@ module Storagesenddef confirm_button_url- url_helpers.oauth_access_grant_admin_settings_storage_project_storages_path(storage)+ options[:confirm_button_url] ||+ url_helpers.oauth_access_grant_admin_settings_storage_project_storages_path(storage)enddef find_storage(storage_record_or_id)