mirror of
https://github.com/pinry/pinry.git
synced 2025-11-17 18:30:39 +01:00
Feature: Add on-no-more method to enable "end" display
This commit is contained in:
committed by
Isaac Bythewood
parent
dfcd3f64d5
commit
78fa0c7e16
@@ -199,6 +199,9 @@ Vue.component('pin-container', {
|
||||
this.$emit(
|
||||
"loaded",
|
||||
);
|
||||
if (!hasNext) {
|
||||
this.$emit("no-more-pins")
|
||||
}
|
||||
},
|
||||
markAsLoading: function() {
|
||||
this.status.loading = true;
|
||||
@@ -294,6 +297,7 @@ var app = new Vue({
|
||||
data() {
|
||||
return {
|
||||
loading: true,
|
||||
noMore: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -303,5 +307,8 @@ var app = new Vue({
|
||||
onLoading: function(){
|
||||
this.loading = true;
|
||||
},
|
||||
onNoMore: function () {
|
||||
this.noMore = true;
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user