1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 18:53:29 +00:00

Implement Clone item functionality (personal/org) (#457)

* Clone personal/org items

* Removed ability to delete during clone process
This commit is contained in:
Vincent Salucci
2020-02-10 13:03:36 -06:00
committed by GitHub
parent 7e95e44f1d
commit ccf3d49fc4
9 changed files with 44 additions and 11 deletions

View File

@@ -70,7 +70,7 @@ export class AddEditComponent extends BaseAddEditComponent {
if (!this.organization.isAdmin) {
return super.saveCipher(cipher);
}
if (this.editMode) {
if (this.editMode && !this.cloneMode) {
const request = new CipherRequest(cipher);
return this.apiService.putCipherAdmin(this.cipherId, request);
} else {