mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-28 03:46:06 -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> |               <button *ngFor="let t of textFilterTargets" ngbDropdownItem [class.active]="textFilterTarget == t.id" (click)="changeTextFilterTarget(t.id)">{{t.name}}</button> | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|           <input class="form-control form-control-sm" type="text" [(ngModel)]="textFilter" *ngIf="textFilterTarget != 'fulltext-morelike'"> |           <input class="form-control form-control-sm" type="text" [(ngModel)]="textFilter" [readonly]="textFilterTarget == 'fulltext-morelike'"> | ||||||
|           <span class="form-control form-control-sm text-truncate" *ngIf="textFilterTarget == 'fulltext-morelike'">{{_moreLikeDoc?.title}}</span> |  | ||||||
|          </div> |          </div> | ||||||
|      </div> |      </div> | ||||||
|   </div> |   </div> | ||||||
|   | |||||||
| @@ -159,6 +159,7 @@ export class FilterEditorComponent implements OnInit, OnDestroy { | |||||||
|           this.textFilterTarget = TEXT_FILTER_TARGET_FULLTEXT_MORELIKE |           this.textFilterTarget = TEXT_FILTER_TARGET_FULLTEXT_MORELIKE | ||||||
|           this.documentService.get(this._moreLikeId).subscribe(result => { |           this.documentService.get(this._moreLikeId).subscribe(result => { | ||||||
|             this._moreLikeDoc = result |             this._moreLikeDoc = result | ||||||
|  |             this._textFilter = result.title | ||||||
|           }) |           }) | ||||||
|           break |           break | ||||||
|         case FILTER_CREATED_AFTER: |         case FILTER_CREATED_AFTER: | ||||||
| @@ -325,6 +326,9 @@ export class FilterEditorComponent implements OnInit, OnDestroy { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   changeTextFilterTarget(target) { |   changeTextFilterTarget(target) { | ||||||
|  |     if (this.textFilterTarget == TEXT_FILTER_TARGET_FULLTEXT_MORELIKE && target != TEXT_FILTER_TARGET_FULLTEXT_MORELIKE) { | ||||||
|  |       this._textFilter = "" | ||||||
|  |     } | ||||||
|     this.textFilterTarget = target |     this.textFilterTarget = target | ||||||
|     this.updateRules() |     this.updateRules() | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler