mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-23 14:03:35 +00:00
Improve the switch
statement at the feed filter
This commit is contained in:
parent
981ac46bec
commit
9e97fc732b
@ -99,13 +99,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
shouldShowVideo(video) {
|
shouldShowVideo(video) {
|
||||||
switch (this.selectedFilter) {
|
switch (this.selectedFilter.toLowerCase()) {
|
||||||
case "all":
|
case "shorts":
|
||||||
return true;
|
return video.isShort;
|
||||||
case "videos":
|
case "videos":
|
||||||
return !video.isShort;
|
return !video.isShort;
|
||||||
default:
|
default:
|
||||||
return video.isShort;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onFilterChange() {
|
onFilterChange() {
|
||||||
|
Loading…
Reference in New Issue
Block a user