mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Enhancement: disable-able mail rules, add toggle to overview (#7810)
This commit is contained in:
		| @@ -12,12 +12,15 @@ | ||||
|       <div class="col-md-4"> | ||||
|         <pngx-input-text [horizontal]="true" i18n-title title="Name" formControlName="name" [error]="error?.name" autocomplete="off"></pngx-input-text> | ||||
|       </div> | ||||
|       <div class="col-md-4"> | ||||
|         <pngx-input-number [horizontal]="true" i18n-title title="Rule order" formControlName="order" [showAdd]="false" [error]="error?.order"></pngx-input-number> | ||||
|       </div> | ||||
|       <div class="col-md-4"> | ||||
|       <div class="col-md-3"> | ||||
|         <pngx-input-select [horizontal]="true" i18n-title title="Account" [items]="accounts" formControlName="account"></pngx-input-select> | ||||
|       </div> | ||||
|       <div class="col-md-3"> | ||||
|         <pngx-input-number [horizontal]="true" i18n-title title="Order" formControlName="order" [showAdd]="false" [error]="error?.order"></pngx-input-number> | ||||
|       </div> | ||||
|       <div class="col-md-2 pt-2"> | ||||
|         <pngx-input-switch [horizontal]="true" i18n-title title="Enabled" formControlName="enabled"></pngx-input-switch> | ||||
|       </div> | ||||
|     </div> | ||||
|     <hr class="mt-0"/> | ||||
|     <div class="row"> | ||||
|   | ||||
| @@ -24,6 +24,7 @@ import { TextComponent } from '../../input/text/text.component' | ||||
| import { EditDialogMode } from '../edit-dialog.component' | ||||
| import { MailRuleEditDialogComponent } from './mail-rule-edit-dialog.component' | ||||
| import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http' | ||||
| import { SwitchComponent } from '../../input/switch/switch.component' | ||||
|  | ||||
| describe('MailRuleEditDialogComponent', () => { | ||||
|   let component: MailRuleEditDialogComponent | ||||
| @@ -43,6 +44,7 @@ describe('MailRuleEditDialogComponent', () => { | ||||
|         TagsComponent, | ||||
|         SafeHtmlPipe, | ||||
|         CheckComponent, | ||||
|         SwitchComponent, | ||||
|       ], | ||||
|       imports: [FormsModule, ReactiveFormsModule, NgSelectModule, NgbModule], | ||||
|       providers: [ | ||||
|   | ||||
| @@ -153,6 +153,7 @@ export class MailRuleEditDialogComponent extends EditDialogComponent<MailRule> { | ||||
|     return new FormGroup({ | ||||
|       name: new FormControl(null), | ||||
|       account: new FormControl(null), | ||||
|       enabled: new FormControl(true), | ||||
|       folder: new FormControl('INBOX'), | ||||
|       filter_from: new FormControl(null), | ||||
|       filter_to: new FormControl(null), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon