mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Posters view added for series
This commit is contained in:
parent
139bfc3c27
commit
46bc97ef92
9 changed files with 137 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue