mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Add device identification guide dialog for unregistered devices
Adds a "How to identify this device" button next to Register Device that opens a dialog with personalized clues (vendor/type) and steps to track down the physical device on the network. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
3d7c4a1323
commit
f3d845ce37
@@ -9,6 +9,7 @@ import '../utils/oott_api.dart';
|
||||
import '../widgets/status_badge.dart';
|
||||
import 'device_actions.dart';
|
||||
import 'device_event_history.dart';
|
||||
import 'device_identification_guide.dart';
|
||||
import '../theme/dimens.dart';
|
||||
import '../utils/placeholders.dart';
|
||||
|
||||
@@ -241,10 +242,21 @@ class _DeviceActions extends StatelessWidget {
|
||||
],
|
||||
);
|
||||
}
|
||||
return FilledButton.icon(
|
||||
onPressed: () => showRegisterDeviceDialog(context, device, onAction),
|
||||
icon: const Icon(Icons.how_to_reg),
|
||||
label: const Text('Register Device'),
|
||||
return Wrap(
|
||||
spacing: 12,
|
||||
runSpacing: 12,
|
||||
children: [
|
||||
FilledButton.icon(
|
||||
onPressed: () => showRegisterDeviceDialog(context, device, onAction),
|
||||
icon: const Icon(Icons.how_to_reg),
|
||||
label: const Text('Register Device'),
|
||||
),
|
||||
OutlinedButton.icon(
|
||||
onPressed: () => showDeviceIdentificationDialog(context, device),
|
||||
icon: const Icon(Icons.help_outline),
|
||||
label: const Text('How to identify this device'),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user