mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Episode details summary has access to series now
This commit is contained in:
parent
8e2364966a
commit
b1fa306223
@ -36,9 +36,8 @@ define(
|
||||
initialize: function (options) {
|
||||
this.templateHelpers.hideSeriesLink = options.hideSeriesLink;
|
||||
|
||||
var series = SeriesCollection.find({ id: this.model.get('seriesId') });
|
||||
this.templateHelpers.series = series.toJSON();
|
||||
var test = 1;
|
||||
this.series = SeriesCollection.find({ id: this.model.get('seriesId') });
|
||||
this.templateHelpers.series = this.series.toJSON();
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
@ -53,7 +52,7 @@ define(
|
||||
}
|
||||
|
||||
this.ui.summary.tab('show');
|
||||
this.summary.show(new SummaryLayout({model: this.model}));
|
||||
this.summary.show(new SummaryLayout({model: this.model, series: this.series}));
|
||||
},
|
||||
|
||||
_showActivity: function (e) {
|
||||
|
@ -3,7 +3,6 @@
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
|
||||
<h3>
|
||||
{{debug}}
|
||||
<i class="icon-bookmark x-episode-monitored" title="Toggle monitored status" />
|
||||
{{#if episodeTitle}}
|
||||
{{title}} - {{EpisodeNumber}} - {{episodeTitle}}
|
||||
|
@ -39,6 +39,14 @@ define(
|
||||
}
|
||||
],
|
||||
|
||||
templateHelpers: {},
|
||||
|
||||
initialize: function (options) {
|
||||
if (!this.model.series) {
|
||||
this.templateHelpers.series = options.series.toJSON();
|
||||
}
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
if (this.model.get('episodeFile')) {
|
||||
this.activity.show(new Backgrid.Grid({
|
||||
|
@ -1,4 +1,5 @@
|
||||
<div class="episode-info">
|
||||
{{debug}}
|
||||
{{#with series}}
|
||||
{{qualityProfile qualityProfileId}}
|
||||
<span class="label label-info">{{network}}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user