Skip to content

Commit

Permalink
Merge pull request #306 from TaiBIF/issues/issue-#305
Browse files Browse the repository at this point in the history
Issues/issue #305
  • Loading branch information
tinym authored Aug 8, 2019
2 parents 3495c74 + cb77930 commit 997b7be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/pages/UploadHistory/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
@click="
showInfoModal = true;
errorType = row.errorType;
errorMessage = row.errorMessage;
"
>
檢視錯誤</a
Expand Down Expand Up @@ -170,6 +171,9 @@
<span v-else-if="errorType === 'missing-fields-camera-location'">
有多筆相機位置
</span>
<span v-else-if="errorType === 'missing-fields'">
缺少欄位: {{ errorMessage }}
</span>
<span v-else-if="errorType === 'others'">
其他錯誤
</span>
Expand All @@ -193,6 +197,7 @@ export default {
return {
showInfoModal: false,
errorType: '',
errorMessage: '',
error: undefined,
isLoading: false,
};
Expand Down
1 change: 0 additions & 1 deletion src/service/modules/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const getAnnotationQuery = file => {
annotationType = 'annotation-csv';
}

annotationType = '';
if (annotationType === '') {
throw 'no annotation-type (not support)';
}
Expand Down

0 comments on commit 997b7be

Please sign in to comment.