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

chore[Op#56922]: separate show dialog in dedicated controller

Kabiru Mwenja5e8fff137e24
diff --git a/frontend/src/stimulus/controllers/dynamic/storages/oauth-access-grant-nudge-modal.controller.ts b/frontend/src/stimulus/controllers/dynamic/storages/oauth-access-grant-nudge-modal.controller.ts
index 1335a330173..d647c1dc469 100644
--- a/frontend/src/stimulus/controllers/dynamic/storages/oauth-access-grant-nudge-modal.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/storages/oauth-access-grant-nudge-modal.controller.ts
@@ -30,7 +30,7 @@
import { Controller } from '@hotwired/stimulus';
-export default class OAuthAccessGrantNudgeModalController extends Controller<HTMLDialogElement> {
+export default class OAuthAccessGrantNudgeModalController extends Controller {
static targets = [
'requestAccessForm',
'requestAccessButton',
@@ -57,8 +57,6 @@ export default class OAuthAccessGrantNudgeModalController extends Controller<HTM
declare readonly loadingScreenReaderMessageValue:string;
connect() {
- this.element.showModal();
-
if (this.hasRequestAccessButtonTarget) {
// Focus on the request access button
this.requestAccessButtonTarget.focus();