diff --git a/pinry/static/js/vue/main.js b/pinry/static/js/vue/main.js index bdeeca3..45fdb55 100644 --- a/pinry/static/js/vue/main.js +++ b/pinry/static/js/vue/main.js @@ -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; + } }, }); diff --git a/pinry/templates/core/pins.html b/pinry/templates/core/pins.html index 224a9d6..6ae4777 100644 --- a/pinry/templates/core/pins.html +++ b/pinry/templates/core/pins.html @@ -1,7 +1,12 @@ {% extends "base.html" %} {% block yield %} - - -
+ + +
+
— End —
{% endblock %}