diff --git a/components/history/rest/Card.vue b/components/history/rest/Card.vue index 569563b22..785d5052e 100644 --- a/components/history/rest/Card.vue +++ b/components/history/rest/Card.vue @@ -14,6 +14,7 @@ " :class="entryStatus.className" data-testid="restore_history_entry" + :title="duration" @click="$emit('use-entry')" > {{ entry.method }} @@ -31,6 +32,7 @@ font-semibold " data-testid="restore_history_entry" + :title="duration" @click="$emit('use-entry')" > @@ -67,6 +69,12 @@ export default { showMore: Boolean, }, computed: { + duration() { + const { duration } = this.entry + return duration > 0 + ? `${this.$t("duration")}: ${duration}ms` + : this.$t("no_duration") + }, entryStatus() { const foundStatusGroup = findStatusGroup(this.entry.status) return ( diff --git a/pages/index.vue b/pages/index.vue index 7e7b3fd2b..cc2ac74d3 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1394,6 +1394,7 @@ export default { path: this.path, usesPreScripts: this.showPreRequestScript, preRequestScript: this.preRequestScript, + duration, star: false, auth: this.auth, httpUser: this.httpUser,