diff --git a/src/baby_monitor/static/add-child.html b/src/baby_monitor/static/add-child.html index 85e7336..b4463c1 100644 --- a/src/baby_monitor/static/add-child.html +++ b/src/baby_monitor/static/add-child.html @@ -313,9 +313,9 @@ : "Child added successfully!", "success", ); - // Redirect to home page after 1 second + // Redirect to settings page if editing, otherwise home page setTimeout(() => { - window.location.href = "/"; + window.location.href = isEditMode ? "/settings.html" : "/"; }, 1000); } else { showMessage( diff --git a/src/baby_monitor/static/settings.html b/src/baby_monitor/static/settings.html index 13abd1a..4d5efd2 100644 --- a/src/baby_monitor/static/settings.html +++ b/src/baby_monitor/static/settings.html @@ -166,16 +166,6 @@ gap: 10px; } - .shared-badge { - display: inline-block; - background: #4caf50; - color: white; - padding: 4px 10px; - border-radius: 12px; - font-size: 12px; - font-weight: 500; - } - .loading { text-align: center; padding: 40px; @@ -478,75 +468,6 @@ - -
-