mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
Disable search form when waiting for results
This commit is contained in:
parent
f43b3e7577
commit
4782bafe7d
|
|
@ -569,6 +569,8 @@ export class AppRdioScannerComponent implements OnDestroy, OnInit {
|
|||
|
||||
this._searchResultsPending = true;
|
||||
|
||||
this.searchForm.disable();
|
||||
|
||||
const query = await this.appRdioScannerCallsQuery.fetch(options, { fetchPolicy: 'no-cache' }).toPromise();
|
||||
|
||||
for (let i = 0; i < limit; i++) {
|
||||
|
|
@ -580,6 +582,8 @@ export class AppRdioScannerComponent implements OnDestroy, OnInit {
|
|||
this._searchFormDateStop = query.data.rdioScannerCalls.dateStop;
|
||||
|
||||
this._searchResultsPending = false;
|
||||
|
||||
this.searchForm.enable();
|
||||
}
|
||||
|
||||
this.searchResults.next(this.searchResultsBuffer.slice(pageFrom % limit, pageTo % limit + 1));
|
||||
|
|
|
|||
Loading…
Reference in a new issue