Skip to content

Commit

Permalink
Emit complete from infinite load components
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed May 24, 2018
1 parent e2c8ac6 commit aa570bf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/infiniteload/Annotations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default {
response = await this.$explicates.getCollection(iri, this.page)
} catch (err) {
$state.complete()
this.$emit('complete')
return
}
Expand Down
1 change: 1 addition & 0 deletions components/infiniteload/DomainObjects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default {
// Loading complete
if (!data.length) {
$state.complete()
this.$emit('complete')
return
}
Expand Down
1 change: 1 addition & 0 deletions components/infiniteload/Projects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default {
if (!data.projects.length) {
$state.complete()
this.$emit('complete')
return
}
Expand Down
1 change: 1 addition & 0 deletions components/presenters/Z3950.vue
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ export default {
if (!results.data.length) {
$state.complete()
this.$emit('complete')
return
}
Expand Down

0 comments on commit aa570bf

Please sign in to comment.