mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
[AC-1139] Add ability to have titlecase titles on nested-checkbox.component checkboxes; use on member-dialog.component
This commit is contained in:
@@ -268,7 +268,7 @@
|
|||||||
formControlName="accessEventLogs"
|
formControlName="accessEventLogs"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" for="accessEventLogs">
|
<label class="!tw-font-normal" for="accessEventLogs">
|
||||||
{{ "accessEventLogs" | i18n }}
|
{{ "accessEventLogs" | i18n | titlecase }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -279,7 +279,7 @@
|
|||||||
formControlName="accessImportExport"
|
formControlName="accessImportExport"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" for="accessImportExport">
|
<label class="!tw-font-normal" for="accessImportExport">
|
||||||
{{ "accessImportExport" | i18n }}
|
{{ "accessImportExport" | i18n | titlecase }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -290,13 +290,14 @@
|
|||||||
formControlName="accessReports"
|
formControlName="accessReports"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" for="accessReports">
|
<label class="!tw-font-normal" for="accessReports">
|
||||||
{{ "accessReports" | i18n }}
|
{{ "accessReports" | i18n | titlecase }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<app-nested-checkbox
|
<app-nested-checkbox
|
||||||
parentId="manageAllCollections"
|
parentId="manageAllCollections"
|
||||||
|
[titlecaseTitles]="true"
|
||||||
[checkboxes]="permissionsGroup.controls.manageAllCollectionsGroup"
|
[checkboxes]="permissionsGroup.controls.manageAllCollectionsGroup"
|
||||||
>
|
>
|
||||||
</app-nested-checkbox>
|
</app-nested-checkbox>
|
||||||
@@ -311,7 +312,7 @@
|
|||||||
formControlName="manageGroups"
|
formControlName="manageGroups"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" for="manageGroups">
|
<label class="!tw-font-normal" for="manageGroups">
|
||||||
{{ "manageGroups" | i18n }}
|
{{ "manageGroups" | i18n | titlecase }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -322,7 +323,7 @@
|
|||||||
formControlName="manageSso"
|
formControlName="manageSso"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" for="manageSso">
|
<label class="!tw-font-normal" for="manageSso">
|
||||||
{{ "manageSso" | i18n }}
|
{{ "manageSso" | i18n | titlecase }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -333,7 +334,7 @@
|
|||||||
formControlName="managePolicies"
|
formControlName="managePolicies"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" for="managePolicies">
|
<label class="!tw-font-normal" for="managePolicies">
|
||||||
{{ "managePolicies" | i18n }}
|
{{ "managePolicies" | i18n | titlecase }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -345,7 +346,7 @@
|
|||||||
(change)="handleDependentPermissions()"
|
(change)="handleDependentPermissions()"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" for="manageUsers">
|
<label class="!tw-font-normal" for="manageUsers">
|
||||||
{{ "manageUsers" | i18n }}
|
{{ "manageUsers" | i18n | titlecase }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -357,7 +358,7 @@
|
|||||||
(change)="handleDependentPermissions()"
|
(change)="handleDependentPermissions()"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" for="manageResetPassword">
|
<label class="!tw-font-normal" for="manageResetPassword">
|
||||||
{{ "manageAccountRecovery" | i18n }}
|
{{ "manageAccountRecovery" | i18n | titlecase }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
[indeterminate]="parentIndeterminate"
|
[indeterminate]="parentIndeterminate"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" [for]="parentId">
|
<label class="!tw-font-normal" [for]="parentId">
|
||||||
{{ parentId | i18n }}
|
{{ titlecaseTitles ? (parentId | i18n | titlecase) : (parentId | i18n) }}
|
||||||
</label>
|
</label>
|
||||||
<div class="tw-ml-6">
|
<div class="tw-ml-6">
|
||||||
<ng-container *ngFor="let c of checkboxes.controls | keyvalue; trackBy: key">
|
<ng-container *ngFor="let c of checkboxes.controls | keyvalue; trackBy: key">
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
(change)="onChildCheck()"
|
(change)="onChildCheck()"
|
||||||
/>
|
/>
|
||||||
<label class="!tw-font-normal" [for]="c.key">
|
<label class="!tw-font-normal" [for]="c.key">
|
||||||
{{ c.key | i18n }}
|
{{ titlecaseTitles ? (c.key | i18n | titlecase) : (c.key | i18n) }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export class NestedCheckboxComponent implements OnInit, OnDestroy {
|
|||||||
private destroy$ = new Subject<void>();
|
private destroy$ = new Subject<void>();
|
||||||
|
|
||||||
@Input() parentId: string;
|
@Input() parentId: string;
|
||||||
|
@Input() titlecaseTitles = false;
|
||||||
@Input() checkboxes: FormGroup<Record<string, FormControl<boolean>>>;
|
@Input() checkboxes: FormGroup<Record<string, FormControl<boolean>>>;
|
||||||
@Output() onSavedUser = new EventEmitter();
|
@Output() onSavedUser = new EventEmitter();
|
||||||
@Output() onDeletedUser = new EventEmitter();
|
@Output() onDeletedUser = new EventEmitter();
|
||||||
|
|||||||
Reference in New Issue
Block a user