Merge remote-tracking branch 'origin/main' into refactor/ui
This commit is contained in:
commit
fa8662f17d
2 changed files with 9 additions and 0 deletions
|
|
@ -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')"
|
||||
>
|
||||
<span class="truncate">
|
||||
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -1394,6 +1394,7 @@ export default {
|
|||
path: this.path,
|
||||
usesPreScripts: this.showPreRequestScript,
|
||||
preRequestScript: this.preRequestScript,
|
||||
duration,
|
||||
star: false,
|
||||
auth: this.auth,
|
||||
httpUser: this.httpUser,
|
||||
|
|
|
|||
Loading…
Reference in a new issue