diff --git a/frontend/src/components/CreateSecret.vue b/frontend/src/components/CreateSecret.vue index 53e8b08..1dd1ca2 100644 --- a/frontend/src/components/CreateSecret.vue +++ b/frontend/src/components/CreateSecret.vue @@ -15,7 +15,9 @@ - Save & Add More + Save & Add More diff --git a/frontend/src/components/ListSecrets.vue b/frontend/src/components/ListSecrets.vue index 80e67fa..0db0048 100644 --- a/frontend/src/components/ListSecrets.vue +++ b/frontend/src/components/ListSecrets.vue @@ -103,7 +103,11 @@ export default { }, editSecret(id) { - console.log(id); + const editingSecret = this.secretsList.filter((element) => { + return element.id === id; + }); + // console.log(editingSecret); + this.$emit("edit", editingSecret[0]); }, filterTable(band) {