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

Fixed missing loading indicator.

parent 605e9914
......@@ -270,9 +270,7 @@ class Api {
async doHttpRequest(method, path, body, config) {
const noLoading = config?.noLoading
if (!noLoading) {
this.onStartLoading()
}
this.onStartLoading(!noLoading)
const auth = await this.authHeaders()
config = config || {}
config.params = config.params || {}
......@@ -300,9 +298,7 @@ class Api {
}
handleApiError(errors)
} finally {
if (!noLoading) {
this.onFinishLoading()
}
this.onFinishLoading(!noLoading)
}
}
......
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