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

This commit is contained in:
Kailash Nadh
2025-05-24 22:03:31 +05:30
parent b04fe6b6b9
commit 9540d49a2b

View File

@@ -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>