1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

Show reload when already on updates page

This commit is contained in:
Mark McDowall 2015-04-22 14:49:24 -07:00
parent 23daae05cc
commit 2feb583e45

View File

@ -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';
}