mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 04:21:27 +02:00
Posters view added for series
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
define([
|
||||
'app',
|
||||
'Series/Index/List/CollectionView',
|
||||
'Series/Index/Posters/CollectionView',
|
||||
'Series/Index/EmptyView',
|
||||
'Config',
|
||||
'Series/Index/Table/AirDateCell',
|
||||
@@ -100,6 +101,10 @@ define([
|
||||
this.series.show(new NzbDrone.Series.Index.List.CollectionView({ collection: this.seriesCollection }));
|
||||
},
|
||||
|
||||
showPosters: function () {
|
||||
this.series.show(new NzbDrone.Series.Index.Posters.CollectionView({ collection: this.seriesCollection }));
|
||||
},
|
||||
|
||||
showEmpty: function () {
|
||||
this.series.show(new NzbDrone.Series.Index.EmptyView());
|
||||
},
|
||||
@@ -120,6 +125,9 @@ define([
|
||||
case 1:
|
||||
this.showList();
|
||||
break;
|
||||
case 2:
|
||||
this.showPosters();
|
||||
break;
|
||||
default:
|
||||
this.showTable();
|
||||
}
|
||||
@@ -143,6 +151,11 @@ define([
|
||||
this.showList();
|
||||
}
|
||||
|
||||
else if (view === 2) {
|
||||
NzbDrone.Config.SeriesViewStyle(2);
|
||||
this.showPosters();
|
||||
}
|
||||
|
||||
else {
|
||||
NzbDrone.Config.SeriesViewStyle(0);
|
||||
this.showTable();
|
||||
|
Reference in New Issue
Block a user