diff --git a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js index f812219d7..d98069c23 100644 --- a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js +++ b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js @@ -82,6 +82,10 @@ $(function () { }); self.enableUpdateAll = ko.pureComputed(function () { + return self.enableUpdate() && self.availableAndPossible().length > 0; + }); + + self.enableUpdateEnabled = ko.pureComputed(function () { return ( self.enableUpdate() && self.availableAndPossibleAndEnabled().length > 0 ); @@ -370,6 +374,17 @@ $(function () { }); }; + information.notificationIconTitle = function () { + var update = information.updateAvailable + ? gettext("Update available") + : gettext("Up-to-date"); + var notifications = information.disabled + ? gettext("notifications are muted") + : gettext("notifications are enabled"); + + return update + " (" + notifications + ")"; + }; + return information; }; diff --git a/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 b/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 index 3bf2516d5..702ebf0f5 100644 --- a/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 +++ b/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 @@ -85,28 +85,31 @@
| - + | @@ -126,6 +129,17 @@ |