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

Misc type fixes

Alexander Brandon Colesb86598d898d6
diff --git a/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts b/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts
index caecc60da7d..84cfb000efc 100644
--- a/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts
+++ b/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts
@@ -146,7 +146,7 @@ export class CkeditorAugmentedTextareaComponent extends UntilDestroyedMixin impl
// Parse the resource if any exists
this.halResource = this.resource ? this.halResourceService.createHalResource(this.resource, true) : undefined;
- this.formElement = this.element.closest<HTMLFormElement>('form') as HTMLFormElement;
+ this.formElement = this.element.closest('form')!;
this.wrappedTextArea = document.getElementById(this.textAreaId) as HTMLTextAreaElement;
diff --git a/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.ts b/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.ts
index f485bc304ab..53e68df4c88 100644
--- a/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.ts
+++ b/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.ts
@@ -26,7 +26,7 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-import { Component, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';
+import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';
import { ToastService } from 'core-app/shared/components/toaster/toast.service';
import { I18nService } from 'core-app/core/i18n/i18n.service';
import { ConfigurationService } from 'core-app/core/config/configuration.service';
@@ -46,6 +46,7 @@ declare module 'codemirror';
selector: 'op-ckeditor',
templateUrl: './op-ckeditor.html',
styleUrls: ['./op-ckeditor.sass'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
})
export class OpCkeditorComponent extends UntilDestroyedMixin implements OnInit, OnDestroy {
@Input() context:ICKEditorContext;