@konfuzio/document-validation-ui 0.1.6-pre-release → 0.1.6
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/main.scss +7 -6
- package/src/store/document.js +16 -7
package/package.json
CHANGED
|
@@ -678,10 +678,10 @@ body {
|
|
|
678
678
|
cursor: text;
|
|
679
679
|
thead {
|
|
680
680
|
background-color: $purple !important;
|
|
681
|
-
font-weight: 500;
|
|
682
|
-
font-size: 10px;
|
|
683
|
-
line-height: 18px;
|
|
684
681
|
th {
|
|
682
|
+
font-weight: 500;
|
|
683
|
+
font-size: 10px;
|
|
684
|
+
line-height: 18px;
|
|
685
685
|
.th-wrap {
|
|
686
686
|
text-transform: none;
|
|
687
687
|
.icon {
|
|
@@ -698,13 +698,14 @@ body {
|
|
|
698
698
|
}
|
|
699
699
|
tbody {
|
|
700
700
|
background-color: rgba(123, 97, 255, 0.1);
|
|
701
|
-
font-weight: 500;
|
|
702
|
-
font-size: 10px;
|
|
703
|
-
line-height: 18px;
|
|
704
701
|
tr {
|
|
705
702
|
background-color: white;
|
|
706
703
|
color: black;
|
|
707
704
|
td {
|
|
705
|
+
font-weight: 500;
|
|
706
|
+
font-size: 10px;
|
|
707
|
+
line-height: 18px;
|
|
708
|
+
|
|
708
709
|
&.has-text-centered {
|
|
709
710
|
vertical-align: middle;
|
|
710
711
|
}
|
package/src/store/document.js
CHANGED
|
@@ -927,8 +927,23 @@ const actions = {
|
|
|
927
927
|
}
|
|
928
928
|
})
|
|
929
929
|
.catch((error) => {
|
|
930
|
-
reject(error.response);
|
|
931
930
|
console.log(error);
|
|
931
|
+
// check if review error
|
|
932
|
+
if (
|
|
933
|
+
error.response &&
|
|
934
|
+
error.response.request &&
|
|
935
|
+
error.response.request.response
|
|
936
|
+
) {
|
|
937
|
+
const is_reviewed = JSON.parse(error.request.response).is_reviewed;
|
|
938
|
+
if (is_reviewed && is_reviewed.length > 0) {
|
|
939
|
+
const errorData = {
|
|
940
|
+
data: [...is_reviewed],
|
|
941
|
+
};
|
|
942
|
+
reject(errorData);
|
|
943
|
+
return;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
reject(error.response);
|
|
932
947
|
});
|
|
933
948
|
});
|
|
934
949
|
},
|
|
@@ -1075,12 +1090,6 @@ const actions = {
|
|
|
1075
1090
|
{ commit, dispatch },
|
|
1076
1091
|
{ error, serverErrorMessage, defaultErrorMessage }
|
|
1077
1092
|
) => {
|
|
1078
|
-
let errorAsString;
|
|
1079
|
-
|
|
1080
|
-
if (error && error.status) {
|
|
1081
|
-
errorAsString = error.status.toString();
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
1093
|
// check type of error
|
|
1085
1094
|
if (error && error.status === 500) {
|
|
1086
1095
|
dispatch("setErrorMessage", serverErrorMessage);
|