refactor(front): rename logger timing stop functions to measureLoading

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2535>
This commit is contained in:
Kasper Seweryn 2023-07-26 10:02:53 +00:00 committed by Marge
commit 9abdcb5ff7
7 changed files with 14 additions and 14 deletions

View file

@ -64,7 +64,7 @@ const fetchData = async () => {
ordering: orderingString.value
}
const stop = logger.time('Fetching radios')
const measureLoading = logger.time('Fetching radios')
try {
const response = await axios.get('radios/radios/', {
params
@ -75,7 +75,7 @@ const fetchData = async () => {
useErrorHandler(error as Error)
result.value = undefined
} finally {
stop()
measureLoading()
isLoading.value = false
}
}