From 56a23c5c3d8dc8863423f240b6c6a0877a61931b Mon Sep 17 00:00:00 2001
From: karwosts <32912880+karwosts@users.noreply.github.com>
Date: Thu, 14 Mar 2024 01:17:07 -0400
Subject: [PATCH] Small reorganization of profile settings (#20076)
* Small reorganization of profile settings
* use isExternal
---
src/panels/profile/ha-panel-profile.ts | 50 +++++++++++++++++---------
src/translations/en.json | 5 +++
2 files changed, 39 insertions(+), 16 deletions(-)
diff --git a/src/panels/profile/ha-panel-profile.ts b/src/panels/profile/ha-panel-profile.ts
index 932163a92812..0c4c121aaf95 100644
--- a/src/panels/profile/ha-panel-profile.ts
+++ b/src/panels/profile/ha-panel-profile.ts
@@ -74,7 +74,6 @@ class HaPanelProfile extends LitElement {
.narrow=${this.narrow}
>
@@ -85,7 +84,20 @@ class HaPanelProfile extends LitElement {
? this.hass.localize("ui.panel.profile.is_owner")
: ""}
-
+
+
+ ${this.hass.localize("ui.panel.profile.logout")}
+
+
+
+
+
+ ${this.hass.localize("ui.panel.profile.user_settings_detail")}
+
+ ${this.hass.user!.is_admin
+ ? html`
+
+ `
+ : ""}
+
+
+
+ ${this.hass.localize("ui.panel.profile.client_settings_detail")}
+
`
: ""}
- ${this.hass.user!.is_admin
- ? html`
-
- `
- : ""}
-
-
- ${this.hass.localize("ui.panel.profile.logout")}
-
-
${this.hass.user!.credentials.some(
diff --git a/src/translations/en.json b/src/translations/en.json
index f491afad6b0a..fe9874df1155 100644
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -5887,6 +5887,11 @@
"profile": {
"current_user": "You are currently logged in as {fullName}.",
"is_owner": "You are an owner.",
+ "user_settings_header": "User settings",
+ "user_settings_detail": "The following settings are tied to your account and will persist across all sessions and devices.",
+ "mobile_app_settings": "Mobile app settings",
+ "browser_settings": "Browser settings",
+ "client_settings_detail": "The following settings are local to this client only, and may reset to defaults on logout or when local data is cleared.",
"logout": "Log out",
"logout_title": "Log out?",
"logout_text": "Are you sure you want to log out?",