Skip to content

Commit

Permalink
Show better empty state when entries don't exist in selected site.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Nov 13, 2020
1 parent 596001b commit a3769af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/js/components/entries/Widget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</div>

<data-list
v-if="!initializing"
v-if="!initializing && items.length"
:rows="items"
:columns="cols"
:sort="false"
Expand All @@ -30,6 +30,10 @@
</div>
</data-list>

<p v-else-if="!initializing && !items.length" class="p-2 pt-1 text-sm text-grey-50">
{{ __('There are no entries in this site') }}
</p>

</div>
</template>

Expand Down

0 comments on commit a3769af

Please sign in to comment.