mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
Fixed UI bug with cloning item when personal ownership is not allowed (#240)
This commit is contained in:
@@ -209,6 +209,10 @@ export class AddEditComponent implements OnInit {
|
||||
// Adjust Cipher Name if Cloning
|
||||
if (this.cloneMode) {
|
||||
this.cipher.name += ' - ' + this.i18nService.t('clone');
|
||||
// If not allowing personal ownership, update cipher's org Id to prompt downstream changes
|
||||
if (this.cipher.organizationId == null && !this.allowPersonal) {
|
||||
this.cipher.organizationId = this.organizationId;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.cipher = new CipherView();
|
||||
|
||||
Reference in New Issue
Block a user