mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Gate push toggle on backend notification method
Add a GET /api/config endpoint exposing the front-end-facing backend
configuration (currently the notification delivery method, grouped under
a nested "notifications" object so the shape can grow). The settings
screen fetches it on init and only shows the per-device push toggle when
the backend method is "push" (and the platform supports push, which keeps
it off the browser).
Also fold in related push-notifications cleanups: fix the Android app
label ("frontend" -> "OOTT") so the notification permission dialog reads
correctly, remove the completed push_notifications.md plan, and update
TODO.md.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
bef1a2987d
commit
1d85ec6f83
@@ -9,6 +9,7 @@ import 'api/dio_config.dart';
|
||||
import 'backend_reachability.dart';
|
||||
import 'pref_utils.dart';
|
||||
import '../model/active_scanner_status.dart';
|
||||
import '../model/app_config.dart';
|
||||
import '../model/passive_scanner_status.dart';
|
||||
import '../model/device.dart';
|
||||
import '../model/device_event.dart';
|
||||
@@ -18,6 +19,7 @@ import '../model/notification.dart';
|
||||
|
||||
export 'api/api_error.dart';
|
||||
|
||||
part 'api/oott_api_config.dart';
|
||||
part 'api/oott_api_devices.dart';
|
||||
part 'api/oott_api_scanners.dart';
|
||||
part 'api/oott_api_notifications.dart';
|
||||
|
||||
Reference in New Issue
Block a user