From 2feb583e45ddd244082d2c007aa3fabcdb6d7fdc Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 22 Apr 2015 14:49:24 -0700 Subject: [PATCH] Show reload when already on updates page --- src/UI/Shared/NzbDroneController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/UI/Shared/NzbDroneController.js b/src/UI/Shared/NzbDroneController.js index b6c1d0b52..dd741d653 100644 --- a/src/UI/Shared/NzbDroneController.js +++ b/src/UI/Shared/NzbDroneController.js @@ -38,13 +38,15 @@ module.exports = Marionette.AppRouter.extend({ }, _onServerUpdated : function() { + var label = window.location.pathname === window.NzbDrone.UrlBase + '/system/updates' ? 'Reload' : 'View Changes'; + Messenger.show({ message : 'Sonarr has been updated', hideAfter : 0, id : 'sonarrUpdated', actions : { viewChanges : { - label : 'View Changes', + label : label, action : function() { window.location = window.NzbDrone.UrlBase + '/system/updates'; }