@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/dist/css/app.css +1 -1
- package/dist/index.html +1 -1
- package/dist/js/app.js +1 -1
- package/dist/js/app.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/scss/theme.scss +4 -0
- package/src/store/document.js +11 -4
package/package.json
CHANGED
package/src/store/document.js
CHANGED
|
@@ -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
|
|