Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
quiver-frontend-local
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
subugoe
OCR-D
quiver-frontend-local
Commits
79167e43
Commit
79167e43
authored
1 year ago
by
Paul Pestov
Browse files
Options
Downloads
Patches
Plain Diff
feat: display error message at timeline
parent
7894e4bf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Timeline.vue
+15
-5
15 additions, 5 deletions
src/components/Timeline.vue
with
15 additions
and
5 deletions
src/components/Timeline.vue
+
15
−
5
View file @
79167e43
...
...
@@ -15,9 +15,14 @@ const selectedMetric = ref<DropdownOption | null>(null)
const
metrics
=
computed
<
DropdownOption
[]
>
(()
=>
Object
.
keys
(
EvaluationMetrics
).
map
(
key
=>
({
value
:
EvaluationMetrics
[
key
],
label
:
t
(
EvaluationMetrics
[
key
])
})))
const
selectedMetricValue
=
computed
<
string
>
(()
=>
selectedMetric
.
value
?.
value
||
EvaluationMetrics
.
CER_MEAN
)
onMounted
(
async
()
=>
{
gtList
.
value
=
await
api
.
getGroundTruth
()
workflows
.
value
=
await
api
.
getWorkflows
()
selectedMetric
.
value
=
metrics
.
value
[
0
]
try
{
gtList
.
value
=
await
api
.
getGroundTruth
()
workflows
.
value
=
await
api
.
getWorkflows
()
selectedMetric
.
value
=
metrics
.
value
[
0
]
}
catch
{
}
})
</
script
>
...
...
@@ -30,13 +35,18 @@ onMounted(async () => {
:options=
"metrics"
:pt=
"DropdownPassThroughStyles"
optionLabel=
"label"
placeholder=
"Select a
City
"
placeholder=
"Select a
metric
"
class=
"ml-auto md:w-14rem"
unstyled
/>
</div>
<div
class=
"flex flex-col space-y-4"
>
<TimelineItem
v-for=
"gt in gtList"
:key=
"gt.id"
:gt=
"gt"
:workflows=
"workflows"
:metric=
"selectedMetricValue"
/>
<template
v-if=
"gtList.length > 0"
>
<TimelineItem
v-for=
"gt in gtList"
:key=
"gt.id"
:gt=
"gt"
:workflows=
"workflows"
:metric=
"selectedMetricValue"
/>
</
template
>
<
template
v-else
>
<div
class=
"my-6"
>
An error has occurred. Please try again later!
</div>
</
template
>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment