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
Fix className usage in dynamic content modal
Oliver Günther3fd0f83ce950
diff --git a/frontend/src/app/shared/components/modals/modal-wrapper/dynamic-content.modal.ts b/frontend/src/app/shared/components/modals/modal-wrapper/dynamic-content.modal.tsindex a5790e0f798..91da2ce6770 100644--- a/frontend/src/app/shared/components/modals/modal-wrapper/dynamic-content.modal.ts+++ b/frontend/src/app/shared/components/modals/modal-wrapper/dynamic-content.modal.ts@@ -28,7 +28,12 @@import {ChangeDetectionStrategy,- ChangeDetectorRef, Component, ElementRef, Inject, OnDestroy, OnInit, ViewChild,+ ChangeDetectorRef,+ Component,+ ElementRef,+ Inject,+ OnDestroy,+ OnInit,} from '@angular/core';import { OpModalLocalsToken } from 'core-app/shared/components/modal/modal.service';import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';@@ -54,7 +59,8 @@ export class DynamicContentModalComponent extends OpModalComponent implements On// Append the dynamic bodyconst wrapper = this.$element.children[0];- wrapper.className += this.locals.modalClassName || '';+ const classes = (this.locals.modalClassName as string) || '';+ wrapper.classList.add(...classes.split(' '));wrapper.innerHTML = this.locals.modalBody as string;const modal = document.querySelector('.spot-modal') as HTMLElement;