Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
:sparkles: Added index number on history entries
liyasthomas2c792975e0b4
diff --git a/index.html b/index.htmlindex 6e0827644..6346d7898 100644--- a/index.html+++ b/index.html@@ -107,10 +107,10 @@<fieldset class="history hidden"><legend v-on:click="collapse">History ⭥</legend><div class="collapsible">- <ul v-for="entry in history">+ <ul v-for="(entry, index) in history"><li>- <label for="use">{{entry.time}}</label>- <button name="use" @click="useHistory(entry)">Use</button>+ <label for="time">Entry {{index + 1}}</label>+ <input name="time" type="text" readonly :value="entry.time"></li><li><label for="name">Method</label>@@ -128,6 +128,10 @@<label for="delete"> </label><button name="delete" @click="deleteHistory(entry)">Delete</button></li>+ <li>+ <label for="use"> </label>+ <button name="use" @click="useHistory(entry)">Use</button>+ </li></ul></div></fieldset>