fixed dictionary listing performance

This commit is contained in:
Timo 2021-02-08 11:00:22 +02:00
parent e2ab99047e
commit b7ba62f37f

View File

@ -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');