1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

Fixed UI bug with cloning item when personal ownership is not allowed (#240)

This commit is contained in:
Vincent Salucci 2020-12-29 15:42:11 -06:00 committed by GitHub
parent 91c61aea58
commit 48144a7eae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();