Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: add empty view for issue list (#19593)

ecmadao71de03390cab
diff --git a/frontend/src/components/IssueV1/components/IssueListV1.vue b/frontend/src/components/IssueV1/components/IssueListV1.vue
index 1f89f6b436..7eadfbd888 100644
--- a/frontend/src/components/IssueV1/components/IssueListV1.vue
+++ b/frontend/src/components/IssueV1/components/IssueListV1.vue
@@ -11,6 +11,7 @@
:highlight-text="highlightText"
@toggle-selection="toggleSelection(issue)"
/>
+ <NEmpty v-if="sortedIssueList.length === 0" class="my-4" />
</NSpin>
</div>
@@ -32,7 +33,7 @@
<script lang="ts" setup>
import { orderBy } from "lodash-es";
-import { NCheckbox, NSpin } from "naive-ui";
+import { NCheckbox, NEmpty, NSpin } from "naive-ui";
import { computed, ref, watch } from "vue";
import type { Issue } from "@/types/proto-es/v1/issue_service_pb";
import { extractIssueUID } from "@/utils";
diff --git a/frontend/src/views/EmptyView.vue b/frontend/src/views/EmptyView.vue
deleted file mode 100644
index 093be78499..0000000000
--- a/frontend/src/views/EmptyView.vue
+++ /dev/null
@@ -1,9 +0,0 @@
-<template>
- <div></div>
-</template>
-
-<script lang="ts">
-export default {
- name: "EmptyView",
-};
-</script>