@@ -2823,6 +2823,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
2823
2823
2824
2824
if (response.data.error) {
2825
2825
_this.error = response.data.error;
2826
+ } else if (response.data.data.length == 0) {
2827
+ _this.error = "Sorry, looks like there's no results.";
2826
2828
} else {
2827
2829
_this.videos = response.data;
2828
2830
}
@@ -2851,7 +2853,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
2851
2853
$route: function $route(to, from) {
2852
2854
this.videos = [];
2853
2855
this.getVideos();
2854
- document.cookie = 'category=' + this.$route.params.category + '; expires=Sun, 25 December 2022 00:00:00 UTC; path=/';
2855
2856
}
2856
2857
}
2857
2858
});
@@ -24387,128 +24388,107 @@ var render = function() {
24387
24388
: _c(
24388
24389
"div",
24389
24390
[
24390
- _c("page-header", {
24391
- directives: [
24392
- {
24393
- name: "show",
24394
- rawName: "v-show",
24395
- value: _vm.loaded,
24396
- expression: "loaded"
24397
- }
24398
- ],
24399
- attrs: { title: _vm.category_title, icon: "" }
24400
- }),
24401
- _vm._v(" "),
24402
- _c(
24403
- "div",
24404
- {
24405
- staticClass:
24406
- "d-flex justify-content-between align-items-center mb-3"
24407
- },
24408
- [
24409
- _c(
24410
- "div",
24411
- {
24412
- directives: [
24413
- {
24414
- name: "show",
24415
- rawName: "v-show",
24416
- value: _vm.loaded,
24417
- expression: "loaded"
24418
- }
24419
- ]
24420
- },
24421
- [
24422
- _vm._v(
24423
- "\n Showing: " +
24424
- _vm._s(_vm.videos.current_page) +
24425
- " of\n " +
24426
- _vm._s(_vm.videos.last_page) +
24427
- "\n "
24428
- )
24429
- ]
24430
- ),
24431
- _vm._v(" "),
24432
- _c(
24391
+ _vm.loaded
24392
+ ? _c(
24433
24393
"div",
24434
24394
{
24435
- directives: [
24436
- {
24437
- name: "show",
24438
- rawName: "v-show",
24439
- value: _vm.loaded,
24440
- expression: "loaded"
24441
- }
24442
- ]
24395
+ staticClass:
24396
+ "d-flex justify-content-between align-items-center mb-3"
24443
24397
},
24444
24398
[
24445
24399
_c(
24446
- "select",
24447
- {
24448
- directives: [
24449
- {
24450
- name: "model",
24451
- rawName: "v-model",
24452
- value: _vm.sort,
24453
- expression: "sort"
24454
- }
24455
- ],
24456
- staticClass: "custom-select",
24457
- attrs: { name: "sortby" },
24458
- on: {
24459
- change: [
24460
- function($event) {
24461
- var $$selectedVal = Array.prototype.filter
24462
- .call($event.target.options, function(
24463
- o
24464
- ) {
24465
- return o.selected
24466
- })
24467
- .map(function(o) {
24468
- var val =
24469
- "_value" in o ? o._value : o.value
24470
- return val
24471
- })
24472
- _vm.sort = $event.target.multiple
24473
- ? $$selectedVal
24474
- : $$selectedVal[0]
24475
- },
24476
- function($event) {
24477
- return _vm.sortBy()
24478
- }
24479
- ]
24480
- }
24481
- },
24400
+ "div",
24482
24401
[
24483
- _c(
24484
- "option",
24485
- {
24486
- attrs: { selected: "", value: "most_views" }
24487
- },
24488
- [_vm._v("Most Views")]
24489
- ),
24490
- _vm._v(" "),
24491
- _c(
24492
- "option",
24493
- { attrs: { value: "top_rated" } },
24494
- [_vm._v("Top Rated")]
24495
- ),
24496
- _vm._v(" "),
24497
- _c("option", { attrs: { value: "duration" } }, [
24498
- _vm._v("Duration")
24499
- ]),
24402
+ _c("page-header", {
24403
+ attrs: { title: _vm.category_title, icon: "" }
24404
+ }),
24500
24405
_vm._v(" "),
24501
- _c(
24502
- "option",
24503
- { attrs: { value: "most_recent" } },
24504
- [_vm._v("Most Recent")]
24505
- )
24506
- ]
24507
- )
24406
+ _c("div", { staticClass: "text-sage" }, [
24407
+ _vm._v(
24408
+ "\n Showing: " +
24409
+ _vm._s(_vm.videos.current_page) +
24410
+ " of\n " +
24411
+ _vm._s(_vm.videos.last_page) +
24412
+ "\n "
24413
+ )
24414
+ ])
24415
+ ],
24416
+ 1
24417
+ ),
24418
+ _vm._v(" "),
24419
+ _c("div", [
24420
+ _c(
24421
+ "select",
24422
+ {
24423
+ directives: [
24424
+ {
24425
+ name: "model",
24426
+ rawName: "v-model",
24427
+ value: _vm.sort,
24428
+ expression: "sort"
24429
+ }
24430
+ ],
24431
+ staticClass: "custom-select",
24432
+ attrs: { name: "sortby" },
24433
+ on: {
24434
+ change: [
24435
+ function($event) {
24436
+ var $$selectedVal = Array.prototype.filter
24437
+ .call($event.target.options, function(
24438
+ o
24439
+ ) {
24440
+ return o.selected
24441
+ })
24442
+ .map(function(o) {
24443
+ var val =
24444
+ "_value" in o ? o._value : o.value
24445
+ return val
24446
+ })
24447
+ _vm.sort = $event.target.multiple
24448
+ ? $$selectedVal
24449
+ : $$selectedVal[0]
24450
+ },
24451
+ function($event) {
24452
+ return _vm.sortBy()
24453
+ }
24454
+ ]
24455
+ }
24456
+ },
24457
+ [
24458
+ _c(
24459
+ "option",
24460
+ {
24461
+ attrs: {
24462
+ selected: "",
24463
+ value: "most_views"
24464
+ }
24465
+ },
24466
+ [_vm._v("Most Views")]
24467
+ ),
24468
+ _vm._v(" "),
24469
+ _c(
24470
+ "option",
24471
+ { attrs: { value: "top_rated" } },
24472
+ [_vm._v("Top Rated")]
24473
+ ),
24474
+ _vm._v(" "),
24475
+ _c(
24476
+ "option",
24477
+ { attrs: { value: "duration" } },
24478
+ [_vm._v("Duration")]
24479
+ ),
24480
+ _vm._v(" "),
24481
+ _c(
24482
+ "option",
24483
+ { attrs: { value: "most_recent" } },
24484
+ [_vm._v("Most Recent")]
24485
+ )
24486
+ ]
24487
+ )
24488
+ ])
24508
24489
]
24509
24490
)
24510
- ]
24511
- ),
24491
+ : _vm._e(),
24512
24492
_vm._v(" "),
24513
24493
_vm.loaded
24514
24494
? _c("video-list", {
@@ -24643,64 +24623,7 @@ var render = function() {
24643
24623
: _vm._e()
24644
24624
],
24645
24625
1
24646
- ),
24647
- _vm._v(" "),
24648
- _c("div", [
24649
- _c(
24650
- "select",
24651
- {
24652
- directives: [
24653
- {
24654
- name: "model",
24655
- rawName: "v-model",
24656
- value: _vm.sort,
24657
- expression: "sort"
24658
- }
24659
- ],
24660
- staticClass: "custom-select",
24661
- attrs: { id: "sortby", name: "sortby" },
24662
- on: {
24663
- change: [
24664
- function($event) {
24665
- var $$selectedVal = Array.prototype.filter
24666
- .call($event.target.options, function(o) {
24667
- return o.selected
24668
- })
24669
- .map(function(o) {
24670
- var val = "_value" in o ? o._value : o.value
24671
- return val
24672
- })
24673
- _vm.sort = $event.target.multiple
24674
- ? $$selectedVal
24675
- : $$selectedVal[0]
24676
- },
24677
- function($event) {
24678
- return _vm.sortBy()
24679
- }
24680
- ]
24681
- }
24682
- },
24683
- [
24684
- _c(
24685
- "option",
24686
- { attrs: { selected: "", value: "most_views" } },
24687
- [_vm._v("Most Views")]
24688
- ),
24689
- _vm._v(" "),
24690
- _c("option", { attrs: { value: "top_rated" } }, [
24691
- _vm._v("Top Rated")
24692
- ]),
24693
- _vm._v(" "),
24694
- _c("option", { attrs: { value: "duration" } }, [
24695
- _vm._v("Duration")
24696
- ]),
24697
- _vm._v(" "),
24698
- _c("option", { attrs: { value: "most_recent" } }, [
24699
- _vm._v("Most Recent")
24700
- ])
24701
- ]
24702
- )
24703
- ])
24626
+ )
24704
24627
]
24705
24628
),
24706
24629
_vm._v(" "),
0 commit comments