File tree Expand file tree Collapse file tree 3 files changed +3
-24
lines changed Expand file tree Collapse file tree 3 files changed +3
-24
lines changed Original file line number Diff line number Diff line change 33 < bit-nav-logo [openIcon] ="logo " route =". " [label] ="'passwordManager' | i18n "> </ bit-nav-logo >
44
55 < bit-nav-item icon ="bwi-vault " [text] ="'vaults' | i18n " route ="vault "> </ bit-nav-item >
6- @if (!(disableSendPolicy$ | async)) {
7- < bit-nav-item icon ="bwi-send " [text] ="'send' | i18n " route ="sends "> </ bit-nav-item >
8- }
6+ < bit-nav-item icon ="bwi-send " [text] ="'send' | i18n " route ="sends "> </ bit-nav-item >
97 < bit-nav-group icon ="bwi-wrench " [text] ="'tools' | i18n " route ="tools ">
108 < bit-nav-item [text] ="'generator' | i18n " route ="tools/generator "> </ bit-nav-item >
119 < bit-nav-item [text] ="'importData' | i18n " route ="tools/import "> </ bit-nav-item >
12- @if (!(disablePersonalVaultExportPolicy$ | async)) {
13- < bit-nav-item [text] ="'exportVault' | i18n " route ="tools/export "> </ bit-nav-item >
14- }
10+ < bit-nav-item [text] ="'exportVault' | i18n " route ="tools/export "> </ bit-nav-item >
1511 </ bit-nav-group >
1612 < bit-nav-item icon ="bwi-sliders " [text] ="'reports' | i18n " route ="reports "> </ bit-nav-item >
1713 < bit-nav-group icon ="bwi-cog " [text] ="'settings' | i18n " route ="settings ">
Original file line number Diff line number Diff line change @@ -42,9 +42,6 @@ export class UserLayoutComponent implements OnInit {
4242 protected hasFamilySponsorshipAvailable$ : Observable < boolean > ;
4343 protected showSponsoredFamilies$ : Observable < boolean > ;
4444 protected showSubscription$ : Observable < boolean > ;
45- protected disableSendPolicy$ : Observable < boolean > ;
46- // detects if policy is enabled and applies to the user, admins are exempted
47- protected disablePersonalVaultExportPolicy$ : Observable < boolean > ;
4845 protected consolidatedSessionTimeoutComponent$ : Observable < boolean > ;
4946
5047 constructor (
@@ -87,19 +84,5 @@ export class UserLayoutComponent implements OnInit {
8784 async ngOnInit ( ) {
8885 document . body . classList . remove ( "layout_frontend" ) ;
8986 await this . syncService . fullSync ( false ) ;
90-
91- this . disableSendPolicy$ = this . accountService . activeAccount$ . pipe (
92- getUserId ,
93- switchMap ( ( userId ) =>
94- this . policyService . policyAppliesToUser$ ( PolicyType . DisableSend , userId ) ,
95- ) ,
96- ) ;
97-
98- this . disablePersonalVaultExportPolicy$ = this . accountService . activeAccount$ . pipe (
99- getUserId ,
100- switchMap ( ( userId ) =>
101- this . policyService . policyAppliesToUser$ ( PolicyType . DisablePersonalVaultExport , userId ) ,
102- ) ,
103- ) ;
10487 }
10588}
Original file line number Diff line number Diff line change 67486748 "message" : " Vault timeout is not within allowed range."
67496749 },
67506750 "disablePersonalVaultExport" : {
6751- "message" : " Remove individual vault export"
6751+ "message" : " Remove export"
67526752 },
67536753 "disablePersonalVaultExportDescription" : {
67546754 "message" : " Do not allow members to export data from their individual vault."
You can’t perform that action at this time.
0 commit comments