Commit b8a864c3 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed missing loading indicator.

parent 605e9914
...@@ -270,9 +270,7 @@ class Api { ...@@ -270,9 +270,7 @@ class Api {
async doHttpRequest(method, path, body, config) { async doHttpRequest(method, path, body, config) {
const noLoading = config?.noLoading const noLoading = config?.noLoading
if (!noLoading) { this.onStartLoading(!noLoading)
this.onStartLoading()
}
const auth = await this.authHeaders() const auth = await this.authHeaders()
config = config || {} config = config || {}
config.params = config.params || {} config.params = config.params || {}
...@@ -300,9 +298,7 @@ class Api { ...@@ -300,9 +298,7 @@ class Api {
} }
handleApiError(errors) handleApiError(errors)
} finally { } finally {
if (!noLoading) { this.onFinishLoading(!noLoading)
this.onFinishLoading()
}
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment