Skip to content

Commit 9540d49

Browse files
committed
Fix subscription status filter param not being picked up on subscribers page. Closes #2447.
1 parent b04fe6b commit 9540d49

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

frontend/src/views/Subscribers.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</span>
1010
<span v-if="currentList">
1111
&raquo; {{ currentList.name }}
12+
<span v-if="queryParams.subStatus" class="has-text-grey has-text-weight-normal is-capitalized">({{ queryParams.subStatus }})</span>
1213
</span>
1314
</h1>
1415
</div>
@@ -527,6 +528,9 @@ export default Vue.extend({
527528
if (this.$route.params.listID) {
528529
this.queryParams.listID = parseInt(this.$route.params.listID, 10);
529530
}
531+
if (this.$route.query.subscription_status) {
532+
this.queryParams.subStatus = this.$route.query.subscription_status;
533+
}
530534
531535
if (this.$route.params.id) {
532536
this.$api.getSubscriber(parseInt(this.$route.params.id, 10)).then((data) => {
@@ -536,9 +540,6 @@ export default Vue.extend({
536540
// Get subscribers on load.
537541
this.querySubscribers();
538542
}
539-
if (this.$route.query.subscription_status) {
540-
this.queryParams.subStatus = this.$route.query.subscription_status;
541-
}
542543
},
543544
});
544545
</script>

0 commit comments

Comments
 (0)