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:
parent
91c61aea58
commit
48144a7eae
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user