diff --git a/ui/dashboard/notifications.reel/notification-details.reel/alert-notification-details.reel/alert-notification-details.html b/ui/dashboard/notifications.reel/notification-details.reel/alert-notification-details.reel/alert-notification-details.html index 6d23f2927c..049fdea2f8 100644 --- a/ui/dashboard/notifications.reel/notification-details.reel/alert-notification-details.reel/alert-notification-details.html +++ b/ui/dashboard/notifications.reel/notification-details.reel/alert-notification-details.reel/alert-notification-details.html @@ -20,7 +20,8 @@ "element": {"#": "jobId"} }, "bindings": { - "value": {"<-": "@owner.object.type + ' #' + @owner.object.idd"} + "value": {"<-": "@owner.object.type + ' #' + @owner.object.idd"}, + "classList.has('is-hidden')": {"<-": "!value"} } }, "taskName": { @@ -40,6 +41,16 @@ "bindings": { "value": {"<-": "@owner.object.description"} } + }, + "updateButton": { + "prototype": "blue-shark/ui/button.reel", + "properties": { + "element": {"#": "updateButton"}, + "value": "Update" + }, + "bindings": { + "classList.has('is-hidden')": {"<-": "@owner.object.clazz != 'UserMessage'"} + } } } @@ -48,6 +59,7 @@
+

Task Name:

diff --git a/ui/dashboard/notifications.reel/notifications.js b/ui/dashboard/notifications.reel/notifications.js index 5b144dbe2f..67ff1f43ff 100644 --- a/ui/dashboard/notifications.reel/notifications.js +++ b/ui/dashboard/notifications.reel/notifications.js @@ -26,6 +26,12 @@ exports.Notifications = AbstractComponentActionDelegate.specialize({ } }, + handleUpdateButtonAction: { + value: function (event) { + this._routingService.navigate('/settings/system-section/_/updates'); + } + }, + handleExpandButtonAction: { value: function (event) { var iteration = this.items._findIterationContainingElement(event.target.element);