mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 21:02:21 +01:00
feat(settings): order the Account group as profile, user interface, notifications
In both the settings sidebar and the user menu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -176,6 +176,19 @@ async function onLogout() {
|
||||
<div class="r-v2-user-menu__group-label">
|
||||
{{ t("settings.group-account") }}
|
||||
</div>
|
||||
<RMenuItem
|
||||
v-if="canSeeProfile"
|
||||
:to="{ name: ROUTES.USER_PROFILE, params: { user: user?.id } }"
|
||||
icon="mdi-account-outline"
|
||||
:label="t('common.profile')"
|
||||
@click="open = false"
|
||||
/>
|
||||
<RMenuItem
|
||||
:to="{ name: ROUTES.USER_INTERFACE }"
|
||||
icon="mdi-palette-outline"
|
||||
:label="t('common.user-interface')"
|
||||
@click="open = false"
|
||||
/>
|
||||
<RMenuItem
|
||||
:to="{ name: ROUTES.NOTIFICATIONS }"
|
||||
icon="mdi-bell-outline"
|
||||
@@ -190,19 +203,6 @@ async function onLogout() {
|
||||
/>
|
||||
</template>
|
||||
</RMenuItem>
|
||||
<RMenuItem
|
||||
v-if="canSeeProfile"
|
||||
:to="{ name: ROUTES.USER_PROFILE, params: { user: user?.id } }"
|
||||
icon="mdi-account-outline"
|
||||
:label="t('common.profile')"
|
||||
@click="open = false"
|
||||
/>
|
||||
<RMenuItem
|
||||
:to="{ name: ROUTES.USER_INTERFACE }"
|
||||
icon="mdi-palette-outline"
|
||||
:label="t('common.user-interface')"
|
||||
@click="open = false"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- Library -->
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//
|
||||
// Groups mirror the v2 user-menu IA so the dropdown and the in-page
|
||||
// navigator share the same mental model:
|
||||
// • Account: notifications, profile + UI prefs
|
||||
// • Account: profile, UI prefs, notifications
|
||||
// • Library: folder mappings, providers, paired devices
|
||||
// • System: admin + server stats
|
||||
// • Tools: jukebox, controller debug (developer-leaning, kept here so
|
||||
@@ -56,13 +56,6 @@ const groups = computed<Group[]>(() => {
|
||||
key: "account",
|
||||
label: t("settings.group-account"),
|
||||
entries: [
|
||||
{
|
||||
icon: "mdi-bell-outline",
|
||||
label: t("notifications.notifications"),
|
||||
to: { name: ROUTES.NOTIFICATIONS },
|
||||
visible: true,
|
||||
count: unreadCount.value,
|
||||
},
|
||||
{
|
||||
icon: "mdi-account-outline",
|
||||
label: t("common.profile"),
|
||||
@@ -78,6 +71,13 @@ const groups = computed<Group[]>(() => {
|
||||
to: { name: ROUTES.USER_INTERFACE },
|
||||
visible: true,
|
||||
},
|
||||
{
|
||||
icon: "mdi-bell-outline",
|
||||
label: t("notifications.notifications"),
|
||||
to: { name: ROUTES.NOTIFICATIONS },
|
||||
visible: true,
|
||||
count: unreadCount.value,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user