From 334bb97d358667676aca1e92cae273f4cb4f10f3 Mon Sep 17 00:00:00 2001 From: gourav Date: Sat, 15 Jun 2024 23:42:12 +0530 Subject: [PATCH] Edit support and timer on main page --- frontend/src/components/CreateSecret.vue | 31 +++++++++++++++++++++--- frontend/src/components/ListSecrets.vue | 6 ++++- 2 files changed, 33 insertions(+), 4 deletions(-) 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) {