From 8e1a9dde0567eace4e015b24e3c647a71361ab06 Mon Sep 17 00:00:00 2001 From: jonaswinkler <17569239+jonaswinkler@users.noreply.github.com> Date: Mon, 5 Apr 2021 21:05:32 +0200 Subject: [PATCH] bugfix --- .../document-list/filter-editor/filter-editor.component.html | 3 +-- .../document-list/filter-editor/filter-editor.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html index 490eed95d..1fbe53d67 100644 --- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html +++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html @@ -8,8 +8,7 @@ - - {{_moreLikeDoc?.title}} + diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts index c1fd8536f..a4463a64b 100644 --- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts +++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts @@ -159,6 +159,7 @@ export class FilterEditorComponent implements OnInit, OnDestroy { this.textFilterTarget = TEXT_FILTER_TARGET_FULLTEXT_MORELIKE this.documentService.get(this._moreLikeId).subscribe(result => { this._moreLikeDoc = result + this._textFilter = result.title }) break case FILTER_CREATED_AFTER: @@ -325,6 +326,9 @@ export class FilterEditorComponent implements OnInit, OnDestroy { } changeTextFilterTarget(target) { + if (this.textFilterTarget == TEXT_FILTER_TARGET_FULLTEXT_MORELIKE && target != TEXT_FILTER_TARGET_FULLTEXT_MORELIKE) { + this._textFilter = "" + } this.textFilterTarget = target this.updateRules() }