From 56f68412badc466b8812ee31996ecdf09d0800d5 Mon Sep 17 00:00:00 2001 From: saber-nyan Date: Mon, 25 Nov 2019 19:40:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BA=D0=B0=D0=B7=20=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=B8=D0=BC=D0=BE=D0=B2=20=D1=81=20=D0=BF=D0=B0=D1=82?= =?UTF-8?q?=D1=82=D0=B5=D1=80=D0=BD=D0=B0=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sidebar.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 2ddb1a0..27e3cec 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -43,6 +43,11 @@ this.streams = []; this.$refs.infiniteLoader.stateChanger.reset(); }, + '$route.query.pattern': function () { + console.debug('Pattern selected'); + this.streams = []; + this.$refs.infiniteLoader.stateChanger.reset(); + }, }, methods: { infiniteLoadingHandler($state) { @@ -58,7 +63,7 @@ direction: 'DESC', startingFrom: startsFrom, pageSize: this.$store.state.pageSize, - pattern: null, // TODO + pattern: this.$route.query.pattern ? {id: this.$route.query.pattern,} : null, favorites: this.$store.state.displayFavoritesOnly, }).then(r => { const data = r.data;