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

fix[Op#52605]: Do not use options dynamic methods that do not change state

Kabiru Mwenjac2a4957b92bf
diff --git a/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb b/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb
index 61e02d1a03b..f52353c04da 100644
--- a/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb
+++ b/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb
@@ -32,7 +32,6 @@ module Storages::Admin
class OAuthAccessGrantNudgeModalComponent < ApplicationComponent # rubocop:disable OpenProject/AddPreviewForViewComponent
options dialog_id: 'storages--oauth-grant-nudge-modal-component',
dialog_body_id: 'storages--oauth-grant-nudge-modal-body-component',
- confirm_button_text: I18n.t('storages.oauth_grant_nudge_modal.confirm_button_label'),
authorized: false
attr_reader :project_storage
@@ -48,6 +47,10 @@ module Storages::Admin
private
+ def confirm_button_text
+ I18n.t('storages.oauth_grant_nudge_modal.confirm_button_label')
+ end
+
def title
if authorized
I18n.t('storages.oauth_grant_nudge_modal.access_granted_screen_reader', storage: project_storage.storage.name)