mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-17 15:37:57 +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
|
// Adjust Cipher Name if Cloning
|
||||||
if (this.cloneMode) {
|
if (this.cloneMode) {
|
||||||
this.cipher.name += ' - ' + this.i18nService.t('clone');
|
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 {
|
} else {
|
||||||
this.cipher = new CipherView();
|
this.cipher = new CipherView();
|
||||||
|
Loading…
Reference in New Issue
Block a user