mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-10-31 08:15:07 +00:00
feat: re-enable Security shortcut in the user menu
Restore openSecurity to isAuthenticated (master's behaviour) so the Security quick-link reappears in the user menu, consistent with the re-enabled Security settings tab.
This commit is contained in:
@@ -47,8 +47,7 @@ export class UserMenuViewModel extends BaseViewModel<UserMenuSnapshot, undefined
|
|||||||
signIn: !isAuthenticated,
|
signIn: !isAuthenticated,
|
||||||
openHomePage: hasHomePage,
|
openHomePage: hasHomePage,
|
||||||
linkNewDevice: isAuthenticated,
|
linkNewDevice: isAuthenticated,
|
||||||
// JP: Disabled Security menu item for HealthChat (confusing)
|
openSecurity: isAuthenticated,
|
||||||
openSecurity: false,
|
|
||||||
openFeedback: shouldShowFeedback(),
|
openFeedback: shouldShowFeedback(),
|
||||||
openSettings: true,
|
openSettings: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ exports[`UserMenuViewModel should generate a menu options for a logged in client
|
|||||||
"linkNewDevice": true,
|
"linkNewDevice": true,
|
||||||
"openFeedback": false,
|
"openFeedback": false,
|
||||||
"openHomePage": false,
|
"openHomePage": false,
|
||||||
"openSecurity": false,
|
"openSecurity": true,
|
||||||
"openSettings": true,
|
"openSettings": true,
|
||||||
"signIn": false,
|
"signIn": false,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user