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
c34615a4
Commit
c34615a4
authored
2 years ago
by
Paul Pestov
Browse files
Options
Downloads
Patches
Plain Diff
Add emtpy checks to workflows table
parent
78518e4b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/workflows/WorkflowsTable.vue
+5
-4
5 additions, 4 deletions
src/components/workflows/WorkflowsTable.vue
src/locales/de.json
+1
-1
1 addition, 1 deletion
src/locales/de.json
src/locales/en.json
+2
-1
2 additions, 1 deletion
src/locales/en.json
with
8 additions
and
6 deletions
src/components/workflows/WorkflowsTable.vue
+
5
−
4
View file @
c34615a4
<
template
>
<div
class=
"container"
>
<div
class=
"grid mb-4"
>
<div
class=
"grid mb-4"
v-if=
"evals.length > 0"
>
<div
class=
"flex align-items-center ml-auto"
>
<p
class=
"mr-2"
>
{{
$t
(
'
group_by
'
)
}}
:
</p>
<Dropdown
...
...
@@ -11,7 +11,7 @@
/>
</div>
</div>
<table
class=
"w-full"
style=
"border-spacing: 0"
>
<table
v-if=
"evals.length > 0"
class=
"w-full"
style=
"border-spacing: 0"
>
<tr>
<th
class=
"border-gray-400"
></th>
<th
class=
"border-gray-400"
></th>
...
...
@@ -52,6 +52,7 @@
</tr>
</
template
>
</table>
<div>
{{ $t('no_table_data') }}
</div>
</div>
</template>
...
...
@@ -79,7 +80,7 @@ const onChange = ({ value }) => {
};
const
groupByWorkflows
=
()
=>
{
groupedData
.
value
=
props
.
data
.
reduce
((
acc
,
cur
)
=>
{
groupedData
.
value
=
props
.
data
.
filter
(
item
=>
!!
(
item
.
metadata
.
ocr_workflow
)).
reduce
((
acc
,
cur
)
=>
{
const
ocrWorkflowId
=
cur
.
metadata
.
ocr_workflow
[
'
@id
'
];
const
label
=
cur
.
metadata
.
ocr_workflow
.
label
;
...
...
@@ -105,7 +106,7 @@ const groupByWorkflows = () => {
};
const
groupByDocuments
=
()
=>
{
groupedData
.
value
=
props
.
data
.
reduce
((
acc
,
cur
)
=>
{
groupedData
.
value
=
props
.
data
.
filter
(
item
=>
!!
(
item
.
metadata
.
gt_workspace
)).
reduce
((
acc
,
cur
)
=>
{
const
gtWorkspaceId
=
cur
.
metadata
.
gt_workspace
[
'
@id
'
];
const
label
=
cur
.
metadata
.
gt_workspace
.
label
;
evals
.
value
=
Object
.
keys
(
cur
.
evaluation
.
document_wide
);
...
...
This diff is collapsed.
Click to expand it.
src/locales/de.json
+
1
−
1
View file @
c34615a4
...
...
@@ -25,5 +25,5 @@
"cer_min_desc"
:
"CER Min absteigend"
,
"cer_max_asc"
:
"CER Max aufsteigend"
,
"cer_max_desc"
:
"CER Max absteigend"
,
"no_table_data"
:
"Keine Tabellendaten verfügbar"
}
This diff is collapsed.
Click to expand it.
src/locales/en.json
+
2
−
1
View file @
c34615a4
...
...
@@ -18,5 +18,6 @@
"cer_min_asc"
:
"CER Min ascending"
,
"cer_min_desc"
:
"CER Min descending"
,
"cer_max_asc"
:
"CER Max ascending"
,
"cer_max_desc"
:
"CER Max descending"
"cer_max_desc"
:
"CER Max descending"
,
"no_table_data"
:
"No table data available"
}
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