Skip to content

Commit

Permalink
feat: add notice about blank result
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 11, 2021
1 parent 871e4e6 commit 933592e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/client/components/ModuleList.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { listMode } from '../logic'
import { listMode, searchText } from '../logic'
defineProps<{
modules: any[]
Expand All @@ -8,6 +8,14 @@ defineProps<{

<template>
<div v-if="modules">
<div v-if="!modules.length" class="px-6 py-4 opacity-50 italic">
<div v-if="searchText">
No search result
</div>
<div v-else>
No module recorded yet, vist <a href="/" target="_blank">your app</a> first and then refresh this page.
</div>
</div>
<RouterLink
v-for="m in modules"
:key="m.id"
Expand Down

0 comments on commit 933592e

Please sign in to comment.