Skip to content

Commit 02a81a5

Browse files
committed
keep settings link around even when connect isn't installed
1 parent e69b0de commit 02a81a5

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

web/components/UserProfile/DropdownContent.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,15 @@ const updateOsButton = computed((): UserProfileLink[] => {
122122
return btns;
123123
});
124124
125+
const settingsLink = computed((): UserProfileLink => {
126+
return {
127+
href: WEBGUI_CONNECT_SETTINGS.toString(),
128+
icon: CogIcon,
129+
text: props.t('Settings'),
130+
title: props.t('Go to Connect plugin settings'),
131+
};
132+
});
133+
125134
const links = computed((): UserProfileLink[] => {
126135
return [
127136
...(regUpdatesExpired.value
@@ -150,15 +159,10 @@ const links = computed((): UserProfileLink[] => {
150159
title: props.t('Opens Connect in new tab'),
151160
},
152161
...[manageUnraidNetAccount.value],
153-
{
154-
href: WEBGUI_CONNECT_SETTINGS.toString(),
155-
icon: CogIcon,
156-
text: props.t('Settings'),
157-
title: props.t('Go to Connect plugin settings'),
158-
},
162+
settingsLink.value,
159163
...signOutAction.value,
160164
]
161-
: [...[manageUnraidNetAccount.value]]),
165+
: [settingsLink.value, manageUnraidNetAccount.value]),
162166
];
163167
});
164168

0 commit comments

Comments
 (0)