fix(editor): Loading state for executions tab (#6100)

* fix(editor): Loading state for executions tab

* fix(editor): do not show no result if loading
This commit is contained in:
Csaba Tuncsik 2023-04-27 13:35:12 +02:00 committed by GitHub
parent e4356283a8
commit 4cbb05b001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -1,8 +1,8 @@
<template>
<div :class="$style.container" v-if="!loading">
<div :class="$style.container">
<executions-sidebar
:executions="executions"
:loading="loading"
:loading="loading && !executions.length"
:loadingMore="loadingMore"
:temporaryExecution="temporaryExecution"
@reloadExecutions="setExecutions"

View file

@ -26,11 +26,11 @@
@scroll="loadMore(20)"
>
<div v-if="loading" class="mr-m">
<n8n-loading :class="$style.loader" variant="p" :rows="1" />
<n8n-loading :class="$style.loader" variant="p" :rows="1" />
<n8n-loading :class="$style.loader" variant="p" :rows="1" />
<n8n-loading variant="p" :rows="1" />
<n8n-loading variant="p" :rows="1" />
<n8n-loading variant="p" :rows="1" />
</div>
<div v-if="executions.length === 0" :class="$style.noResultsContainer">
<div v-if="!loading && executions.length === 0" :class="$style.noResultsContainer">
<n8n-text color="text-base" size="medium" align="center">
{{ $locale.baseText('executionsLandingPage.noResults') }}
</n8n-text>
@ -54,7 +54,7 @@
@retryExecution="onRetryExecution"
/>
<div v-if="loadingMore" class="mr-m">
<n8n-loading :class="$style.loader" variant="p" :rows="1" />
<n8n-loading variant="p" :rows="1" />
</div>
</div>
<div :class="$style.infoAccordion">