Skip to content

Commit

Permalink
fix(editor): Loading state for executions tab (#6100)
Browse files Browse the repository at this point in the history
* fix(editor): Loading state for executions tab

* fix(editor): do not show no result if loading
  • Loading branch information
cstuncsik authored and netroy committed May 2, 2023
1 parent 9d44991 commit 2e12c50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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">
Expand Down

0 comments on commit 2e12c50

Please sign in to comment.