{
if (this.actionPromise != null) {
return;
diff --git a/src/app/vault/vault.component.html b/src/app/vault/vault.component.html
index e412015b71..f66e327cca 100644
--- a/src/app/vault/vault.component.html
+++ b/src/app/vault/vault.component.html
@@ -57,7 +57,8 @@
+ (onShareClicked)="shareCipher($event)" (onCollectionsClicked)="editCipherCollections($event)"
+ (onCloneClicked)="cloneCipher($event)">
@@ -119,4 +120,4 @@
-
+
\ No newline at end of file
diff --git a/src/app/vault/vault.component.ts b/src/app/vault/vault.component.ts
index 5c3f76cddc..b4cbf13fb2 100644
--- a/src/app/vault/vault.component.ts
+++ b/src/app/vault/vault.component.ts
@@ -366,6 +366,11 @@ export class VaultComponent implements OnInit, OnDestroy {
return childComponent;
}
+ cloneCipher(cipher: CipherView) {
+ const component = this.editCipher(cipher);
+ component.cloneMode = true;
+ }
+
bulkDelete() {
const selectedIds = this.ciphersComponent.getSelectedIds();
if (selectedIds.length === 0) {
diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json
index fc469ab7fd..9bdf415506 100644
--- a/src/locales/en/messages.json
+++ b/src/locales/en/messages.json
@@ -2956,5 +2956,8 @@
},
"minLength": {
"message": "Minimum Length"
+ },
+ "clone": {
+ "message": "Clone"
}
-}
+}
\ No newline at end of file