mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
Show reload when already on updates page
This commit is contained in:
@@ -38,13 +38,15 @@ module.exports = Marionette.AppRouter.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onServerUpdated : function() {
|
_onServerUpdated : function() {
|
||||||
|
var label = window.location.pathname === window.NzbDrone.UrlBase + '/system/updates' ? 'Reload' : 'View Changes';
|
||||||
|
|
||||||
Messenger.show({
|
Messenger.show({
|
||||||
message : 'Sonarr has been updated',
|
message : 'Sonarr has been updated',
|
||||||
hideAfter : 0,
|
hideAfter : 0,
|
||||||
id : 'sonarrUpdated',
|
id : 'sonarrUpdated',
|
||||||
actions : {
|
actions : {
|
||||||
viewChanges : {
|
viewChanges : {
|
||||||
label : 'View Changes',
|
label : label,
|
||||||
action : function() {
|
action : function() {
|
||||||
window.location = window.NzbDrone.UrlBase + '/system/updates';
|
window.location = window.NzbDrone.UrlBase + '/system/updates';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user