mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-24 22:35:49 -04:00
MovieIndexPage Stability + MovieEditor fix (#925)
* this fixes some issues where the table was rendering with incorrect data prior to it being updated.... it also has the FullCollection fetched when necessary.. this will make the movie Index be accurate even after deleting files or when returning from the movieEditor.. The footer has been improved and since FullMovieCollection is now kept up to date the footer changes as the user performs operations and it shows all the time with proper info even after deletions or changes made in the movieEditor. Prior to this it was necessary to totally refresh the page.. switching between movie editor and movie index would give unpredicatable results. these issues have been fixed * this is a much better solution... still testing, but likel ready to be merged * removing comments * fix the movieEditor -- client side paging in movieEditor * major code cleanup, and a slightly better implementation no need to use FullMovieCollection.. just use moviesCollection.fullCollection when in client mode * display a message when saving is done perhaps eventually we can have a spinning status indicator on the save button.. but that is not necessary right away * some minor adjustments * remove parseInt for tmdbId * fix bugs * remove some alerts * accidentally changes this on last commit * use the same FullMovieList everywhere * add back alert when save is done
This commit is contained in:
@@ -2,7 +2,9 @@ var $ = require('jquery');
|
||||
var _ = require('underscore');
|
||||
var SelectAllCell = require('../../Cells/SelectAllCell');
|
||||
var Backgrid = require('backgrid');
|
||||
var FullMovieCollection = require('../../Movies/FullMovieCollection');
|
||||
//var FullMovieCollection = require('../../Movies/FullMovieCollection');
|
||||
var MoviesCollectionClient = require('../../Movies/MoviesCollectionClient');
|
||||
|
||||
|
||||
module.exports = SelectAllCell.extend({
|
||||
_originalRender : SelectAllCell.prototype.render,
|
||||
@@ -13,7 +15,7 @@ module.exports = SelectAllCell.extend({
|
||||
this._originalInit.apply(this, arguments);
|
||||
|
||||
var tmdbId = this.model.get('tmdbId');
|
||||
var existingMovie = FullMovieCollection.where({ tmdbId: tmdbId });
|
||||
var existingMovie = MoviesCollectionClient.fullCollection.where({ tmdbId: tmdbId });
|
||||
this.isDuplicate = existingMovie.length > 0 ? true : false;
|
||||
|
||||
this.listenTo(this.model, 'change', this._refresh);
|
||||
|
||||
Reference in New Issue
Block a user