diff --git a/frontend/src/App.vue b/frontend/src/App.vue index c199ca1..3fc761b 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,6 +1,6 @@ @@ -28,7 +28,7 @@ import ListSecrets from "./components/ListSecrets.vue";
- + Show secrets Hide secrets diff --git a/frontend/src/components/CreateSecret.vue b/frontend/src/components/CreateSecret.vue index fce905e..a656343 100644 --- a/frontend/src/components/CreateSecret.vue +++ b/frontend/src/components/CreateSecret.vue @@ -1,8 +1,5 @@ @@ -42,14 +57,15 @@ export default { const response = await fetch(url, requestOptions) .then((response) => response.json()) .then((data) => { - // console.log(data); + console.log(data); return data; }) .catch((err) => console.log(err)); response.forEach((element) => { - console.log(element); + // console.log(element); const row = this.parseSecret(element.data); + row["id"] = element["id"]; this.secretsList.push(row); }); }, @@ -65,6 +81,10 @@ export default { console.log(expires); return otp; }, + + handleClick(scope) { + console.log(scope); + }, }, mounted() {