Skip to content

Commit

Permalink
feat(client): hide add ticket button with empty
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed May 3, 2024
1 parent fd1f9b8 commit dc04f70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/views/system/ticket/TicketView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<TicketBreadcrumb :value="breadcrumbs">
<RouterLink
v-if="schemas.length > 0"
class="no-underline"
to="/system/ticket/add"
>
Expand Down Expand Up @@ -74,8 +75,9 @@ const { t } = useI18n()
const breadcrumbs = useTicketBreadcrumb([TicketBreadcrumbType.HOME])
const { data: tickets, loading } = useAPI(api.ticket.getMyTickets, { default: [] })
const { data: schemas, loading: schemaLoading } = useAPI(api.ticket.getProbablySchemas, { default: [] })
usePageLoading(() => loading.value)
usePageLoading(() => loading.value || schemaLoading.value)
</script>

<i18n lang="json">
Expand Down

0 comments on commit dc04f70

Please sign in to comment.