mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	| @@ -243,8 +243,12 @@ export class DocumentListComponent implements OnInit, OnDestroy, AfterViewInit { | ||||
|               $localize`View "${savedView.name}" created successfully.` | ||||
|             ) | ||||
|           }, | ||||
|           error: (error) => { | ||||
|             modal.componentInstance.error = error.error | ||||
|           error: (httpError) => { | ||||
|             let error = httpError.error | ||||
|             if (error.filter_rules) { | ||||
|               error.filter_rules = error.filter_rules.map((r) => r.value) | ||||
|             } | ||||
|             modal.componentInstance.error = error | ||||
|             modal.componentInstance.buttonsEnabled = true | ||||
|           }, | ||||
|         }) | ||||
|   | ||||
| @@ -8,6 +8,11 @@ | ||||
|     <app-input-text i18n-title title="Name" formControlName="name" [error]="error?.name"></app-input-text> | ||||
|     <app-input-check i18n-title title="Show in sidebar" formControlName="showInSideBar"></app-input-check> | ||||
|     <app-input-check i18n-title title="Show on dashboard" formControlName="showOnDashboard"></app-input-check> | ||||
|     <div *ngIf="error?.filter_rules" class="alert alert-danger" role="alert"> | ||||
|       <h6 class="alert-heading" i18n>Filter rules error occurred while saving this view</h6> | ||||
|       <ng-container i18n>The error returned was</ng-container>:<br/> | ||||
|       {{ error.filter_rules }} | ||||
|     </div> | ||||
|   </div> | ||||
|   <div class="modal-footer"> | ||||
|     <button type="button" class="btn btn-outline-dark" (click)="cancel()" i18n [disabled]="!buttonsEnabled">Cancel</button> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon