mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
[PM-8381] Assign collections (#9854)
* initial add of assign collections component * grab cipherId from query params * add organization selection for moving a cipher * add multi-select for collections * add transfer of cipher to an organization * temp: do not show assign collections while a cipher already has an organization * account for initial collections for a cipher * block assign-collections route with feature flag * replace hardcoded string with i18n * separate out async calls to switchMap to avoid async subscribe * use local cipher rather than decrypting again * use anchor for better semantics * migrate form submission to bitSubmit directive * swap to "assign" rather than "save" * integrate with base AssignCollections component * clean up messages file * remove unneeded takeUntilDestroyed * remove unneeded bitFormButton * remove unused translations * lint fix * refactor assign-collections component to take in a button reference - This allows consuming components to not have to worry about loading/disabled states - The base AssignCollections component will change the submit button when supplied
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<form [formGroup]="formGroup" [bitSubmit]="submit" id="assign_collections_form">
|
||||
<p>{{ "bulkCollectionAssignmentDialogDescription" | i18n }}</p>
|
||||
|
||||
<ul class="tw-list-disc tw-pl-5 tw-space-y-2">
|
||||
<ul class="tw-list-none tw-pl-5 tw-space-y-2">
|
||||
<li *ngIf="readonlyItemCount > 0">
|
||||
<p>
|
||||
{{ "bulkCollectionAssignmentWarning" | i18n: totalItemCount : readonlyItemCount }}
|
||||
|
||||
Reference in New Issue
Block a user