mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Add Register and Forget actions to devices list
Adds a context menu to each device card with contextual actions: - Unregistered devices show a Register option (dialog with owner field and device type dropdown) - Registered devices show a Forget option (confirmation dialog) Also fixes CORS to allow PUT and DELETE methods, adds device type tooltips on the icon, and renames the "New" filter/badge to "Not registered". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d0b9855bad
commit
3094753587
@@ -80,6 +80,12 @@ pub async fn serve() -> Result<(), Box<dyn Error>> {
|
||||
// Allow all origins and headers for API
|
||||
let cors_layer = CorsLayer::new()
|
||||
.allow_origin(Any)
|
||||
.allow_methods([
|
||||
http::Method::GET,
|
||||
http::Method::POST,
|
||||
http::Method::PUT,
|
||||
http::Method::DELETE,
|
||||
])
|
||||
.allow_headers([http::header::AUTHORIZATION, http::header::CONTENT_TYPE]);
|
||||
|
||||
let router = Router::new()
|
||||
|
||||
Reference in New Issue
Block a user