Skip to content

Commit

Permalink
💄 close #142
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Mar 6, 2022
1 parent 6d50b0a commit 3fd7d60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ const useV2 = computed(() => {
const progress = computed(() => {
if (!isNaN(annotationStore.video.frames && annotationStore.cachedFrameList.length)) {
return Math.round(annotationStore.cachedFrameList.filter(frame => frame).length / annotationStore.video.frames * 100)
return Math.round(
annotationStore.cachedFrameList.filter(frame => frame).length / annotationStore.video.frames * 100)
} else {
return 0
}
Expand Down Expand Up @@ -171,6 +172,8 @@ if (annotation) {
const { loadAnnotation } = useAnnotation()
utils.readFile(annotation).then(res => {
loadAnnotation(JSON.parse(res))
}).catch(err => {
utils.notify(`Could not load annotation: ${err}`, 'negative')
})
}
if (!annotation && video) {
Expand Down

0 comments on commit 3fd7d60

Please sign in to comment.