mirror of https://github.com/lidarr/Lidarr
New: number of episode files that will be deleted shown on delete dialog
This commit is contained in:
parent
901808e0b3
commit
e67136ae64
|
@ -10,9 +10,9 @@ namespace NzbDrone.Core.SeriesStats
|
||||||
|
|
||||||
public class SeriesStatisticsService : ISeriesStatisticsService
|
public class SeriesStatisticsService : ISeriesStatisticsService
|
||||||
{
|
{
|
||||||
private readonly SeriesStatisticsRepository _seriesStatisticsRepository;
|
private readonly ISeriesStatisticsRepository _seriesStatisticsRepository;
|
||||||
|
|
||||||
public SeriesStatisticsService(SeriesStatisticsRepository seriesStatisticsRepository)
|
public SeriesStatisticsService(ISeriesStatisticsRepository seriesStatisticsRepository)
|
||||||
{
|
{
|
||||||
_seriesStatisticsRepository = seriesStatisticsRepository;
|
_seriesStatisticsRepository = seriesStatisticsRepository;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-offset-1 col-md-5 delete-files-info x-delete-files-info">
|
||||||
|
{{episodeFileCount}} episode files will be deleted
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,11 +9,13 @@ define(
|
||||||
template: 'Series/Delete/DeleteSeriesTemplate',
|
template: 'Series/Delete/DeleteSeriesTemplate',
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
'click .x-confirm-delete': 'removeSeries'
|
'click .x-confirm-delete' : 'removeSeries',
|
||||||
|
'change .x-delete-files' : 'changeDeletedFiles'
|
||||||
},
|
},
|
||||||
|
|
||||||
ui: {
|
ui: {
|
||||||
deleteFiles : '.x-delete-files',
|
deleteFiles : '.x-delete-files',
|
||||||
|
deleteFilesInfo : '.x-delete-files-info',
|
||||||
indicator : '.x-indicator'
|
indicator : '.x-indicator'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -29,6 +31,18 @@ define(
|
||||||
vent.trigger(vent.Events.SeriesDeleted, { series: self.model });
|
vent.trigger(vent.Events.SeriesDeleted, { series: self.model });
|
||||||
vent.trigger(vent.Commands.CloseModalCommand);
|
vent.trigger(vent.Commands.CloseModalCommand);
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
changeDeletedFiles: function () {
|
||||||
|
var deleteFiles = this.ui.deleteFiles.prop('checked');
|
||||||
|
|
||||||
|
if (deleteFiles) {
|
||||||
|
this.ui.deleteFilesInfo.show();
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
this.ui.deleteFilesInfo.hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -31,6 +31,11 @@
|
||||||
.path {
|
.path {
|
||||||
margin-left : 30px;
|
margin-left : 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.delete-files-info {
|
||||||
|
margin-top : 10px;
|
||||||
|
display : none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.series-item {
|
.series-item {
|
||||||
|
|
Loading…
Reference in New Issue