File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
web/components/UserProfile Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff 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+
125134const 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
You can’t perform that action at this time.
0 commit comments