diff --git a/app/components/header/menu/index.tsx b/app/components/header/menu/index.tsx index ca18254a4..2442107c8 100644 --- a/app/components/header/menu/index.tsx +++ b/app/components/header/menu/index.tsx @@ -129,14 +129,6 @@ export default function Menu() { )} - - - - {t('tutorials_label')} - - - - @@ -155,12 +147,7 @@ export default function Menu() { - + e.preventDefault()} className="cursor-pointer" diff --git a/app/components/mydevices/dt/columns.tsx b/app/components/mydevices/dt/columns.tsx index d95fe57e7..bbc4b43e3 100644 --- a/app/components/mydevices/dt/columns.tsx +++ b/app/components/mydevices/dt/columns.tsx @@ -26,6 +26,7 @@ export type SenseBox = { exposure: Device['exposure'] createdAt: Date archivedAt: Date | null + model: Device['model'] // model: string; } @@ -129,7 +130,7 @@ export function getColumns( { accessorKey: 'id', header: () => ( -
{t('sensebox_id')}
+
{t('device_id')}
), cell: ({ row }) => { const device = row.original @@ -195,15 +196,19 @@ export function getColumns( )}
- - - {t('support')} - - + {((device.model?.toLowerCase() ?? '').indexOf('sensebox') >= + 0 || + (device.model?.toLowerCase() ?? '').indexOf('home') >= 0) && ( + + + {t('support')} + + + )} navigator.clipboard.writeText(device.id)} diff --git a/public/locales/de/data-table.json b/public/locales/de/data-table.json index 70a597c46..1d8092072 100644 --- a/public/locales/de/data-table.json +++ b/public/locales/de/data-table.json @@ -9,7 +9,7 @@ "next_page": "Nächste Seite", "last_page": "Letzte Seite", - "sensebox_id": "Sensebox ID", + "device_id": "Device ID", "actions": "Aktionen", "name": "Name", "createdAt": "Erstellt am", diff --git a/public/locales/en/data-table.json b/public/locales/en/data-table.json index e2b73dfe3..04b020e6d 100644 --- a/public/locales/en/data-table.json +++ b/public/locales/en/data-table.json @@ -9,7 +9,7 @@ "next_page": "Next page", "last_page": "Last page", - "sensebox_id": "Sensebox ID", + "device_id": "Device ID", "actions": "Actions", "name": "Name", "createdAt": "Created at",