mirror of
https://github.com/Av0idD4rk/packmate.git
synced 2026-10-23 21:42:06 +00:00
Показ стримов с паттернами
This commit is contained in:
parent
6de43d3e3b
commit
56f68412ba
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user