mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
allow for archived ciphers to be shared into an organization (#17592)
This commit is contained in:
@@ -166,10 +166,6 @@ export class CipherView implements View, InitializerMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get canAssignToCollections(): boolean {
|
get canAssignToCollections(): boolean {
|
||||||
if (this.isArchived) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.organizationId == null) {
|
if (this.organizationId == null) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,11 +192,6 @@ export class ItemDetailsSectionComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get showOwnership() {
|
get showOwnership() {
|
||||||
// Don't show ownership field for archived ciphers
|
|
||||||
if (this.originalCipherView?.isArchived) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Show ownership field when editing with available orgs
|
// Show ownership field when editing with available orgs
|
||||||
const isEditingWithOrgs = this.organizations.length > 0 && this.config.mode === "edit";
|
const isEditingWithOrgs = this.organizations.length > 0 && this.config.mode === "edit";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user