diff --git a/src/NzbDrone.Core/SeriesStats/SeriesStatisticsService.cs b/src/NzbDrone.Core/SeriesStats/SeriesStatisticsService.cs
index e611e3fe0..648fb841f 100644
--- a/src/NzbDrone.Core/SeriesStats/SeriesStatisticsService.cs
+++ b/src/NzbDrone.Core/SeriesStats/SeriesStatisticsService.cs
@@ -10,9 +10,9 @@ namespace NzbDrone.Core.SeriesStats
public class SeriesStatisticsService : ISeriesStatisticsService
{
- private readonly SeriesStatisticsRepository _seriesStatisticsRepository;
+ private readonly ISeriesStatisticsRepository _seriesStatisticsRepository;
- public SeriesStatisticsService(SeriesStatisticsRepository seriesStatisticsRepository)
+ public SeriesStatisticsService(ISeriesStatisticsRepository seriesStatisticsRepository)
{
_seriesStatisticsRepository = seriesStatisticsRepository;
}
diff --git a/src/UI/Series/Delete/DeleteSeriesTemplate.hbs b/src/UI/Series/Delete/DeleteSeriesTemplate.hbs
index b54049b6d..3971b9444 100644
--- a/src/UI/Series/Delete/DeleteSeriesTemplate.hbs
+++ b/src/UI/Series/Delete/DeleteSeriesTemplate.hbs
@@ -35,6 +35,9 @@
+
+ {{episodeFileCount}} episode files will be deleted
+
diff --git a/src/UI/Series/Delete/DeleteSeriesView.js b/src/UI/Series/Delete/DeleteSeriesView.js
index 672141fe7..3dec450ff 100644
--- a/src/UI/Series/Delete/DeleteSeriesView.js
+++ b/src/UI/Series/Delete/DeleteSeriesView.js
@@ -9,12 +9,14 @@ define(
template: 'Series/Delete/DeleteSeriesTemplate',
events: {
- 'click .x-confirm-delete': 'removeSeries'
+ 'click .x-confirm-delete' : 'removeSeries',
+ 'change .x-delete-files' : 'changeDeletedFiles'
},
ui: {
- deleteFiles : '.x-delete-files',
- indicator : '.x-indicator'
+ deleteFiles : '.x-delete-files',
+ deleteFilesInfo : '.x-delete-files-info',
+ indicator : '.x-indicator'
},
removeSeries: function () {
@@ -29,6 +31,18 @@ define(
vent.trigger(vent.Events.SeriesDeleted, { series: self.model });
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();
+ }
}
});
});
diff --git a/src/UI/Series/series.less b/src/UI/Series/series.less
index 357db8ab6..892cf6c46 100644
--- a/src/UI/Series/series.less
+++ b/src/UI/Series/series.less
@@ -31,6 +31,11 @@
.path {
margin-left : 30px;
}
+
+ .delete-files-info {
+ margin-top : 10px;
+ display : none;
+ }
}
.series-item {