Skip to content

Commit

Permalink
refactor(NotificationsTableEmpty): rename component
Browse files Browse the repository at this point in the history
Component is also used for other tables.
  • Loading branch information
marcel-bitfly committed Oct 21, 2024
1 parent cdaf52a commit 7d40e41
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions frontend/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
"NotificationsDashboardDialogEntity",
"NotificationsDashboardTable",
"NotificationsManagementModalWebhook",
"NotificationsManagementNetwork",
"NotificationsManagementSubscriptionDialog",
"NotificationsManagmentMachines",
"NotificationsNetworkTable",
"NotificationsOverview",
"NotificationsTableEmpty",
"a11y",
"checkout",
"ci",
Expand All @@ -33,8 +35,7 @@
"qrCode",
"useNotificationsOverviewStore",
"useWindowSize",
"vscode",
"NotificationsManagementNetwork"
"vscode"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const { overview } = useNotificationsDashboardOverviewStore()
</template>
</Column>
<template #empty>
<NotificationsDashboardsTableEmpty
<NotificationsTableEmpty
v-if="!clientsNotifications?.data.length"
@open-dialog="$emit('openDialog')"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const showDialog = (row: { identifier: string } & NotificationDashboardsTableRow
</div>
</template>
<template #empty>
<NotificationsDashboardsTableEmpty
<NotificationsTableEmpty
v-if="!notificationsDashboards?.data.length"
@open-dialog="$emit('openDialog')"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const machineEvent = (eventType: NotificationMachinesTableRow['event_type']) =>
</div>
</template>
<template #empty>
<NotificationsDashboardsTableEmpty
<NotificationsTableEmpty
v-if="!machineNotifications?.data.length"
@open-dialog="$emit('openDialog')"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const textThreshold = (row: NotificationNetworksTableRow) => {
</template>
</Column>
<template #empty>
<NotificationsDashboardsTableEmpty
<NotificationsTableEmpty
v-if="!networkNotifications?.data.length"
@open-dialog="$emit('openDialog')"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const handleClick = () => {
emit('openDialog')
}
const { isLoggedIn } = useUserStore()
const { dashboards } = useUserDashboardStore()
const {
dashboards,
} = useUserDashboardStore()
const hasDashboards = computed(() => {
return (
dashboards.value?.account_dashboards?.length
Expand Down

0 comments on commit 7d40e41

Please sign in to comment.