mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-17 16:41:19 +00:00
search busy animation
This commit is contained in:
@@ -13,13 +13,17 @@ export class SearchComponent implements OnInit {
|
||||
|
||||
query: string = ""
|
||||
|
||||
searching = false
|
||||
|
||||
constructor(private searchService: SearchService, private route: ActivatedRoute) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.route.queryParamMap.subscribe(paramMap => {
|
||||
this.query = paramMap.get('query')
|
||||
this.searching = true
|
||||
this.searchService.search(this.query).subscribe(result => {
|
||||
this.results = result
|
||||
this.searching = false
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user