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

[#62047] readded portal outlet target

Eric Schubertc11221ab2e12
diff --git a/frontend/src/stimulus/controllers/dynamic/project-storage-form.controller.ts b/frontend/src/stimulus/controllers/dynamic/project-storage-form.controller.ts
index b2b92baf8e5..f37f1b021d5 100644
--- a/frontend/src/stimulus/controllers/dynamic/project-storage-form.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/project-storage-form.controller.ts
@@ -47,6 +47,7 @@ import { OpenProjectPluginContext } from 'core-app/features/plugins/plugin-conte
import {
LocationPickerModalComponent,
} from 'core-app/shared/components/storages/location-picker-modal/location-picker-modal.component';
+import { PortalOutletTarget } from 'core-app/shared/components/modal/portal-outlet-target.enum';
import { storageConnected } from 'core-app/shared/components/storages/storages-constants.const';
export default class ProjectStorageFormController extends Controller {
@@ -102,7 +103,8 @@ export default class ProjectStorageFormController extends Controller {
this.pluginContext.subscribe((context) => {
context.runInZone(() => {
- context.services.opModalService.show(LocationPickerModalComponent, 'global', locals)
+ context.services.opModalService
+ .show(LocationPickerModalComponent, 'global', locals, false, false, this.OutletTarget)
.pipe(
switchMap((modal) => modal.closingEvent),
filter((modal) => modal.submitted),
@@ -149,6 +151,10 @@ export default class ProjectStorageFormController extends Controller {
return from(window.OpenProject.getPluginContext());
}
+ protected get OutletTarget():PortalOutletTarget {
+ return PortalOutletTarget.Default;
+ }
+
protected get storage():IStorage {
return JSON.parse(this.storageTarget.dataset.storage as string) as IStorage;
}