Показ стримов с паттернами

This commit is contained in:
saber-nyan 2019-11-25 19:40:19 +03:00
parent 6de43d3e3b
commit 56f68412ba
No known key found for this signature in database
GPG Key ID: 7B069E9C295E6B4A

View File

@ -43,6 +43,11 @@
this.streams = []; this.streams = [];
this.$refs.infiniteLoader.stateChanger.reset(); this.$refs.infiniteLoader.stateChanger.reset();
}, },
'$route.query.pattern': function () {
console.debug('Pattern selected');
this.streams = [];
this.$refs.infiniteLoader.stateChanger.reset();
},
}, },
methods: { methods: {
infiniteLoadingHandler($state) { infiniteLoadingHandler($state) {
@ -58,7 +63,7 @@
direction: 'DESC', direction: 'DESC',
startingFrom: startsFrom, startingFrom: startsFrom,
pageSize: this.$store.state.pageSize, pageSize: this.$store.state.pageSize,
pattern: null, // TODO pattern: this.$route.query.pattern ? {id: this.$route.query.pattern,} : null,
favorites: this.$store.state.displayFavoritesOnly, favorites: this.$store.state.displayFavoritesOnly,
}).then(r => { }).then(r => {
const data = r.data; const data = r.data;