1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 12:02:35 +02:00

Fixed: Library shown as empty after filter returns no movies and page is refreshed (#3515)

Fixes #3514
This commit is contained in:
Daniel Dammermann 2019-05-30 18:31:31 +00:00 committed by Leonardo Galli
parent 2f76f3c6b6
commit 61066cb6cf
2 changed files with 5 additions and 1 deletions

View File

@ -370,7 +370,7 @@ module.exports = Marionette.Layout.extend({
},
_renderView : function() {
if (MoviesCollection.length === 0) {
if (MoviesCollection.length === 0 && !this.moviesCollection.isFiltered()) {
this.moviesRegion.show(new EmptyView());
this.toolbar.close();

View File

@ -261,6 +261,10 @@ var Collection = PageableCollection.extend({
this.fetch();
},
isFiltered : function() {
return this.state.filterKey && this.state.filterKey !== 'all';
},
comparator: function (model) {
return model.get('sortTitle');
}