mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	move const
This commit is contained in:
		
							parent
							
								
									0a29f51862
								
							
						
					
					
						commit
						b3e6f04b30
					
				@ -33,8 +33,6 @@ import { ToastService } from 'src/app/services/toast.service'
 | 
				
			|||||||
import { FilterEditorComponent } from './filter-editor/filter-editor.component'
 | 
					import { FilterEditorComponent } from './filter-editor/filter-editor.component'
 | 
				
			||||||
import { SaveViewConfigDialogComponent } from './save-view-config-dialog/save-view-config-dialog.component'
 | 
					import { SaveViewConfigDialogComponent } from './save-view-config-dialog/save-view-config-dialog.component'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const filterQueryVars: string[] = FILTER_RULE_TYPES.map((rt) => rt.filtervar)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
  selector: 'app-document-list',
 | 
					  selector: 'app-document-list',
 | 
				
			||||||
  templateUrl: './document-list.component.html',
 | 
					  templateUrl: './document-list.component.html',
 | 
				
			||||||
@ -114,6 +112,10 @@ export class DocumentListComponent implements OnInit, OnDestroy, AfterViewInit {
 | 
				
			|||||||
        })
 | 
					        })
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const filterQueryVars: string[] = FILTER_RULE_TYPES.map(
 | 
				
			||||||
 | 
					      (rt) => rt.filtervar
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this.route.queryParamMap
 | 
					    this.route.queryParamMap
 | 
				
			||||||
      .pipe(filter((qp) => !this.route.snapshot.paramMap.has('id'))) // only when not on saved view
 | 
					      .pipe(filter((qp) => !this.route.snapshot.paramMap.has('id'))) // only when not on saved view
 | 
				
			||||||
      .subscribe((queryParams) => {
 | 
					      .subscribe((queryParams) => {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user