From e0eb1711db81f1b7a10d9d8fee14c17f6e731adb Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Mon, 8 Jun 2026 00:05:23 +0200 Subject: [PATCH] =?UTF-8?q?feat(native):=20Ger=C3=A4te-Liste=20informativ?= =?UTF-8?q?=20=E2=80=94=20Trash/Men=C3=BC=20raus,=20chevron-forward=20?= =?UTF-8?q?=E2=86=92=20Detail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Entfernen passiert am Gerät selbst (Cooldown, win-App/Mac), nicht aus der Liste gesteuert. Row-Pfeil öffnet nur das Info-/Detail-Sheet. Co-Authored-By: Claude Opus 4.8 --- apps/rebreak-native/app/devices.tsx | 65 ++++------------------------- 1 file changed, 9 insertions(+), 56 deletions(-) diff --git a/apps/rebreak-native/app/devices.tsx b/apps/rebreak-native/app/devices.tsx index 854b8db..6bc25dc 100644 --- a/apps/rebreak-native/app/devices.tsx +++ b/apps/rebreak-native/app/devices.tsx @@ -132,21 +132,6 @@ function MobileDeviceRow({ : null; const releaseActive = !!releaseAt && new Date(releaseAt).getTime() > Date.now(); - function confirmRemove() { - Alert.alert( - t('settings.devices_remove_title'), - t('settings.devices_remove_desc'), - [ - { text: t('common.cancel'), style: 'cancel' }, - { - text: t('settings.devices_remove_confirm'), - style: 'destructive', - onPress: () => onRemove(device.id), - }, - ] - ); - } - function confirmRequestRelease() { Alert.alert( t('devices.release_request_title'), @@ -301,7 +286,7 @@ function MobileDeviceRow({ - {device.isCurrent ? null : releaseActive ? ( + {releaseActive ? ( ) : ( + // Entfernen passiert am Gerät selbst (Cooldown), nicht aus der Liste — + // Pfeil öffnet nur das Info-/Detail-Sheet. - + )} @@ -367,31 +354,6 @@ function ProtectedDeviceRow({ }); } - const menuActions = device.status === 'pending' - ? [ - { id: 'remove', title: t('settings.devices_remove_confirm'), attributes: { destructive: true } }, - ] - : [ - { id: 'remove', title: t('settings.devices_remove_confirm'), attributes: { destructive: true } }, - ]; - - function handleMenuSelect(id: string) { - if (id === 'remove') { - Alert.alert( - t('devices.remove_warning_title'), - t('devices.remove_warning_body'), - [ - { text: t('common.cancel'), style: 'cancel' }, - { - text: t('settings.devices_remove_confirm'), - style: 'destructive', - onPress: () => onRemove(device.id), - }, - ] - ); - } - } - return ( - handleMenuSelect(event)} - shouldOpenOnLongPress={false} - > - - - - + {/* Kein Entfernen aus der Liste — Pfeil öffnet nur das Detail-Sheet. */} + + + ); }