mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	bugfix
This commit is contained in:
		| @@ -8,8 +8,7 @@ | ||||
|               <button *ngFor="let t of textFilterTargets" ngbDropdownItem [class.active]="textFilterTarget == t.id" (click)="changeTextFilterTarget(t.id)">{{t.name}}</button> | ||||
|             </div> | ||||
|           </div> | ||||
|           <input class="form-control form-control-sm" type="text" [(ngModel)]="textFilter" *ngIf="textFilterTarget != 'fulltext-morelike'"> | ||||
|           <span class="form-control form-control-sm text-truncate" *ngIf="textFilterTarget == 'fulltext-morelike'">{{_moreLikeDoc?.title}}</span> | ||||
|           <input class="form-control form-control-sm" type="text" [(ngModel)]="textFilter" [readonly]="textFilterTarget == 'fulltext-morelike'"> | ||||
|          </div> | ||||
|      </div> | ||||
|   </div> | ||||
|   | ||||
| @@ -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() | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler