1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

hide folder form field when configuration has hideFolderSelection set to true

This commit is contained in:
Nick Krantz
2024-09-23 12:45:39 -05:00
parent 1ab007f895
commit 2442dcc939

View File

@@ -18,7 +18,11 @@
<input bitInput formControlName="name" />
</bit-form-field>
<div class="tw-grid tw-grid-cols-2 tw-gap-1">
<bit-form-field *ngIf="showOwnership" [disableMargin]="!showCollectionsControl">
<bit-form-field
*ngIf="showOwnership"
[disableMargin]="!showCollectionsControl"
[class.tw-col-span-2]="config.hideFolderSelection"
>
<bit-label>{{ "owner" | i18n }}</bit-label>
<bit-select formControlName="organizationId">
<bit-option
@@ -36,6 +40,7 @@
<bit-form-field
[class.tw-col-span-2]="!showOwnership"
[disableMargin]="!showCollectionsControl"
*ngIf="!config.hideFolderSelection"
>
<bit-label>{{ "folder" | i18n }}</bit-label>
<bit-select formControlName="folderId">