From 4129ed11bbc72f49bf511029839de86c64592c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 22 Apr 2022 11:46:33 +0200 Subject: [PATCH] Web: use wrapper for the OpenAPI client to track requests A wrapper for the generated `ApiClient` class tracks the number of running queries. This makes it much simpler to show the "API calls pending" UI element, regardless of which part of the webapp performs the queries. --- web/app/src/App.vue | 29 +++++----------- web/app/src/components/ApiSpinner.vue | 8 +++-- web/app/src/components/JobDetails.vue | 4 +-- web/app/src/components/JobsTable.vue | 15 +++++---- web/app/src/components/TaskDetails.vue | 1 - web/app/src/stores/api-query-count.js | 46 ++++++++++++++++++++++++++ web/app/src/stores/jobs.js | 3 +- 7 files changed, 74 insertions(+), 32 deletions(-) create mode 100644 web/app/src/stores/api-query-count.js diff --git a/web/app/src/App.vue b/web/app/src/App.vue index 8e7a48c3..8ce82b8f 100644 --- a/web/app/src/App.vue +++ b/web/app/src/App.vue @@ -1,19 +1,19 @@