@konfuzio/document-validation-ui 0.1.43-dev.1 → 0.1.43-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konfuzio/document-validation-ui",
3
- "version": "0.1.43-dev.1",
3
+ "version": "0.1.43-dev.2",
4
4
  "repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
@@ -318,6 +318,10 @@
318
318
  box-shadow: none !important;
319
319
  border-color: $primary !important;
320
320
  }
321
+
322
+ .tag {
323
+ border: none !important;
324
+ }
321
325
  }
322
326
  .field {
323
327
  input {
@@ -368,7 +368,8 @@ const getters = {
368
368
  label.annotations.forEach((annotation) => {
369
369
  if (
370
370
  state.annotationFilters.showFeedbackNeeded &&
371
- annotation.revised === false
371
+ annotation.revised === false &&
372
+ !annotation.created_by
372
373
  ) {
373
374
  const added = addAnnotation(
374
375
  labelAnnotations,
@@ -378,10 +379,9 @@ const getters = {
378
379
  if (added) {
379
380
  addLabel = true;
380
381
  }
381
- }
382
- if (
382
+ } else if (
383
383
  state.annotationFilters.showAccepted &&
384
- annotation.revised === true
384
+ (annotation.revised === true || annotation.created_by)
385
385
  ) {
386
386
  const added = addAnnotation(
387
387
  labelAnnotations,
@@ -590,6 +590,13 @@ const getters = {
590
590
  * Checks if it's currently searching for annotations
591
591
  */
592
592
  isSearchingAnnotationList: (state) => {
593
+ if (
594
+ !state.annotationFilters.showFeedbackNeeded ||
595
+ !state.annotationFilters.showEmpty ||
596
+ !state.annotationFilters.showAccepted
597
+ ) {
598
+ return true;
599
+ }
593
600
  return state.annotationSearch && state.annotationSearch.length > 0;
594
601
  },
595
602