mirror of
https://github.com/knadh/listmonk.git
synced 2025-12-06 00:10:03 +01:00
Fix subscription status filter param not being picked up on subscribers page. Closes #2447.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
</span>
|
||||
<span v-if="currentList">
|
||||
» {{ 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>
|
||||
|
||||
Reference in New Issue
Block a user