From b7ba62f37f128e569c51538376d423f97647e581 Mon Sep 17 00:00:00 2001 From: Timo Date: Mon, 8 Feb 2021 11:00:22 +0200 Subject: [PATCH] fixed dictionary listing performance --- .../dictionary-overview-screen.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.ts b/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.ts index f9d181bf0..76de61c05 100644 --- a/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.ts +++ b/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.ts @@ -60,6 +60,10 @@ export class DictionaryOverviewScreenComponent extends ComponentHasChanges { this._initialize(); } + private setHeight() { + this.editorComponent.style = { height: '500px' }; + } + private _initialize() { if (this.dictionary.type) this._dictionaryControllerService.getDictionaryForType(this.dictionary.type, this.dictionary.ruleSetId).subscribe( @@ -129,6 +133,7 @@ export class DictionaryOverviewScreenComponent extends ComponentHasChanges { .filter((entry) => !!entry); } + @debounce(500) textChanged($event: any) { this._applySearchMarkers(); this.currentDictionaryEntries = $event.split('\n');