mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +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:
@@ -33,6 +33,7 @@ export class CiphersComponent extends BaseCiphersComponent implements OnDestroy
|
||||
@Output() onAttachmentsClicked = new EventEmitter<CipherView>();
|
||||
@Output() onShareClicked = new EventEmitter<CipherView>();
|
||||
@Output() onCollectionsClicked = new EventEmitter<CipherView>();
|
||||
@Output() onCloneClicked = new EventEmitter<CipherView>();
|
||||
|
||||
cipherType = CipherType;
|
||||
actionPromise: Promise<any>;
|
||||
@@ -91,6 +92,10 @@ export class CiphersComponent extends BaseCiphersComponent implements OnDestroy
|
||||
this.onCollectionsClicked.emit(c);
|
||||
}
|
||||
|
||||
clone(c: CipherView) {
|
||||
this.onCloneClicked.emit(c);
|
||||
}
|
||||
|
||||
async delete(c: CipherView): Promise<boolean> {
|
||||
if (this.actionPromise != null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user