1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

Patch/onedr0p 3 16 17 (#1200)

* clear localStorage on radarr update.. ya mon

* Fix when movie folder is deleted from disk and keeps showing up as downloaded in radarr

* Clear all UI localStorage items on update, set pageSize to what it needs to be.
This commit is contained in:
Devin Buhl
2017-03-16 18:43:06 -04:00
committed by GitHub
parent 2b1023e768
commit 59c07cc5f3
2 changed files with 22 additions and 5 deletions
+8 -1
View File
@@ -3,6 +3,7 @@ var AppLayout = require('../AppLayout');
var Marionette = require('marionette');
var NotFoundView = require('./NotFoundView');
var Messenger = require('./Messenger');
var Config = require('../Config');
module.exports = Marionette.AppRouter.extend({
initialize : function() {
@@ -41,7 +42,7 @@ module.exports = Marionette.AppRouter.extend({
var label = window.location.pathname === window.NzbDrone.UrlBase + '/system/updates' ? 'Reload' : 'View Changes';
Messenger.show({
message : 'Radarr has been updated',
message : 'Radarr has been updated, some UI configuration has been reset',
hideAfter : 0,
id : 'sonarrUpdated',
actions : {
@@ -54,6 +55,12 @@ module.exports = Marionette.AppRouter.extend({
}
});
// Only for pre-release development
var pageSize = Config.getValue("pageSize");
window.localStorage.clear();
Config.setValue("pageSize", pageSize);
// Remove above when out of pre-release :)
this.pendingUpdate = true;
},