Merge remote-tracking branch 'origin/main' into refactor/ui
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
"
|
"
|
||||||
:class="entryStatus.className"
|
:class="entryStatus.className"
|
||||||
data-testid="restore_history_entry"
|
data-testid="restore_history_entry"
|
||||||
|
:title="duration"
|
||||||
@click="$emit('use-entry')"
|
@click="$emit('use-entry')"
|
||||||
>
|
>
|
||||||
{{ entry.method }}
|
{{ entry.method }}
|
||||||
@@ -31,6 +32,7 @@
|
|||||||
font-semibold
|
font-semibold
|
||||||
"
|
"
|
||||||
data-testid="restore_history_entry"
|
data-testid="restore_history_entry"
|
||||||
|
:title="duration"
|
||||||
@click="$emit('use-entry')"
|
@click="$emit('use-entry')"
|
||||||
>
|
>
|
||||||
<span class="truncate">
|
<span class="truncate">
|
||||||
@@ -67,6 +69,12 @@ export default {
|
|||||||
showMore: Boolean,
|
showMore: Boolean,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
duration() {
|
||||||
|
const { duration } = this.entry
|
||||||
|
return duration > 0
|
||||||
|
? `${this.$t("duration")}: ${duration}ms`
|
||||||
|
: this.$t("no_duration")
|
||||||
|
},
|
||||||
entryStatus() {
|
entryStatus() {
|
||||||
const foundStatusGroup = findStatusGroup(this.entry.status)
|
const foundStatusGroup = findStatusGroup(this.entry.status)
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1394,6 +1394,7 @@ export default {
|
|||||||
path: this.path,
|
path: this.path,
|
||||||
usesPreScripts: this.showPreRequestScript,
|
usesPreScripts: this.showPreRequestScript,
|
||||||
preRequestScript: this.preRequestScript,
|
preRequestScript: this.preRequestScript,
|
||||||
|
duration,
|
||||||
star: false,
|
star: false,
|
||||||
auth: this.auth,
|
auth: this.auth,
|
||||||
httpUser: this.httpUser,
|
httpUser: this.httpUser,
|
||||||
|
|||||||
Reference in New Issue
Block a user