Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Replace loading text with icon

Bas Broekhuizen23120ec0115f
diff --git a/src/app/(main)/websites/[websiteId]/events/EventProperties.tsx b/src/app/(main)/websites/[websiteId]/events/EventProperties.tsx
index 6d555e5dd..e3e442ad3 100644
--- a/src/app/(main)/websites/[websiteId]/events/EventProperties.tsx
+++ b/src/app/(main)/websites/[websiteId]/events/EventProperties.tsx
@@ -1,5 +1,5 @@
import { useMemo } from 'react';
-import { GridColumn, GridTable, Flexbox, Button, ButtonGroup } from 'react-basics';
+import { GridColumn, GridTable, Flexbox, Button, ButtonGroup, Loading } from 'react-basics';
import { useEventDataProperties, useEventDataValues, useMessages } from '@/components/hooks';
import { LoadingPanel } from '@/components/common/LoadingPanel';
import PieChart from '@/components/charts/PieChart';
@@ -82,8 +82,8 @@ export function EventProperties({ websiteId }: { websiteId: string }) {
</ButtonGroup>
</Flexbox>
- {values?.length === 0 ? (
- <div>{formatMessage(labels.noData)}</div>
+ {!values ? (
+ <Loading icon="dots" />
) : propertyView === 'table' ? (
<ListTable data={tableData} />
) : (