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[Op51372]: Remove unused redirect URI builder JS (#14366)
Kabiru Mwenja5a7ba5cf22fd
diff --git a/frontend/src/stimulus/controllers/dynamic/storages/oauth-client-form.controller.ts b/frontend/src/stimulus/controllers/dynamic/storages/oauth-client-form.controller.tsindex 74953341175..717aa0dc177 100644--- a/frontend/src/stimulus/controllers/dynamic/storages/oauth-client-form.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/storages/oauth-client-form.controller.ts@@ -34,26 +34,17 @@ export default class OAuthClientFormController extends Controller {static targets = ['clientId','clientSecret',- 'redirectUri','submitButton',];- static values = {- clientIdMissing: String,- };-declare readonly hasClientIdTarget:boolean;declare readonly hasClientSecretTarget:boolean;declare readonly hasSubmitButtonTarget:boolean;declare readonly clientIdTarget:HTMLInputElement;declare readonly clientSecretTarget:HTMLInputElement;- declare readonly redirectUriTargets:HTMLInputElement[];declare readonly submitButtonTarget:HTMLInputElement;- declare readonly clientIdMissingValue:string;-connect():void {- this.setRedirectUriValue();this.toggleSubmitButtonDisabled();}@@ -70,20 +61,4 @@ export default class OAuthClientFormController extends Controller {this.submitButtonTarget.disabled = false;}}-- public setRedirectUriValue():void {- const newValue = this.redirectUri();- this.redirectUriTargets.forEach((target) => {- target.value = newValue;- target.setAttribute('value', newValue);- });- }-- private redirectUri():string {- if (this.clientIdTarget.value === '') {- return this.clientIdMissingValue;- }-- return `${window.location.origin}/oauth_clients/${this.clientIdTarget.value}/callback`;- }}diff --git a/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erb b/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erbindex 2d213d99052..351293b98d5 100644--- a/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erb+++ b/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erb@@ -6,8 +6,7 @@method: form_method,data: {controller: 'storages--oauth-client-form',- application_target: 'dynamic',- 'storages--oauth-client-form-client-id-missing-value': t(:"storages.instructions.one_drive.missing_client_id_for_redirect_uri")+ application_target: 'dynamic'}) do |form|flex_layout do |oauth_client_row|@@ -27,8 +26,7 @@client_id_input_options: {data: {'storages--oauth-client-form-target': 'clientId',- action: 'input->storages--oauth-client-form#toggleSubmitButtonDisabled ' \- 'input->storages--oauth-client-form#setRedirectUriValue'+ action: 'input->storages--oauth-client-form#toggleSubmitButtonDisabled'}},client_secret_input_options: {diff --git a/modules/storages/app/components/storages/admin/forms/redirect_uri_form_component.html.erb b/modules/storages/app/components/storages/admin/forms/redirect_uri_form_component.html.erbindex 822897bc124..cbeefce49e9 100644--- a/modules/storages/app/components/storages/admin/forms/redirect_uri_form_component.html.erb+++ b/modules/storages/app/components/storages/admin/forms/redirect_uri_form_component.html.erb@@ -6,8 +6,7 @@method: :post,data: {controller: 'storages--oauth-client-form',- application_target: 'dynamic',- 'storages--oauth-client-form-client-id-missing-value': t(:"storages.instructions.one_drive.missing_client_id_for_redirect_uri")+ application_target: 'dynamic'}) do |form|flex_layout do |oauth_client_row|@@ -18,10 +17,7 @@label: I18n.t('storages.label_redirect_uri'),visually_hide_label: false,value: redirect_uri_or_instructions,- required: true,- data: {- 'storages--oauth-client-form-target': 'redirectUri'- }+ required: true)input_group.with_trailing_action_clipboard_copy_button(@@ -29,9 +25,6 @@aria: {label: I18n.t('button_copy_to_clipboard')},- data: {- 'storages--oauth-client-form-target': 'redirectUri'- },test_selector: 'storage-oauth-client-redirect-uri')end)