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

[PM-12770] Assign to Collections Hint (#14529)

* allow use of common spec in lib/vault tests

* pass readonly collections to the assign collection component

- The assign to collections component filters them out already.
-They're also needed to display copy within the component

* add hint to assign to collections component when there are read only collections assigned to a cipher already

* add readonly hint to desktop

* only show collection hint for collections that are assigned to the provided ciphers

* consider admin/owner edit everything permission when assigning to collections

* fix icon in test
This commit is contained in:
Nick Krantz
2025-05-22 11:09:33 -05:00
committed by GitHub
parent 9417d8a943
commit f52e4e27a0
8 changed files with 165 additions and 8 deletions

View File

@@ -37,13 +37,16 @@
</div>
<div class="tw-flex">
<bit-form-field class="tw-grow tw-max-w-full">
<bit-form-field class="tw-grow tw-max-w-full" disableMargin>
<bit-label>{{ "selectCollectionsToAssign" | i18n }}</bit-label>
<bit-multi-select
class="tw-w-full"
formControlName="collections"
[baseItems]="availableCollections"
></bit-multi-select>
<bit-hint *ngIf="readOnlyCollectionNames.length > 0" data-testid="view-only-hint">
{{ "cannotRemoveViewOnlyCollections" | i18n: readOnlyCollectionNames.join(", ") }}
</bit-hint>
</bit-form-field>
</div>
</form>