(feat) update pages

This commit is contained in:
cardosofede
2025-07-11 02:57:57 +03:00
parent 91cd3d0365
commit e44fa89283
39 changed files with 6036 additions and 780 deletions

View File

@@ -130,5 +130,12 @@ with c3:
if upload_config_to_backend:
backend_api_client = get_backend_api_client()
backend_api_client.add_controller_config(config)
st.success("Config uploaded successfully!")
try:
config_name = config.get("id", id.lower())
backend_api_client.controllers.create_or_update_controller_config(
config_name=config_name,
config=config
)
st.success("Config uploaded successfully!")
except Exception as e:
st.error(f"Failed to upload config: {e}")