Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix subscription status filter param not being picked up on subscribers page. Closes #2447.

Kailash Nadh9540d49a2b4d
diff --git a/frontend/src/views/Subscribers.vue b/frontend/src/views/Subscribers.vue
index c83d180a..9e8d7e19 100644
--- a/frontend/src/views/Subscribers.vue
+++ b/frontend/src/views/Subscribers.vue
@@ -9,6 +9,7 @@
</span>
<span v-if="currentList">
&raquo; {{ currentList.name }}
+ <span v-if="queryParams.subStatus" class="has-text-grey has-text-weight-normal is-capitalized">({{ queryParams.subStatus }})</span>
</span>
</h1>
</div>
@@ -527,6 +528,9 @@ export default Vue.extend({
if (this.$route.params.listID) {
this.queryParams.listID = parseInt(this.$route.params.listID, 10);
}
+ if (this.$route.query.subscription_status) {
+ this.queryParams.subStatus = this.$route.query.subscription_status;
+ }
if (this.$route.params.id) {
this.$api.getSubscriber(parseInt(this.$route.params.id, 10)).then((data) => {
@@ -536,9 +540,6 @@ export default Vue.extend({
// Get subscribers on load.
this.querySubscribers();
}
- if (this.$route.query.subscription_status) {
- this.queryParams.subStatus = this.$route.query.subscription_status;
- }
},
});
</script>