From 7c67972115513e12d7beac0c454d1f816e70eb4a Mon Sep 17 00:00:00 2001 From: Samuel Padgett Date: Tue, 31 Oct 2017 16:17:31 -0400 Subject: [PATCH] Show ProvisionCallFailed in notification drawer Also use `humanizeKind` filter when displaying kinds in the drawer. --- app/scripts/constants.js | 1 + app/views/directives/notifications/notification-body.html | 2 +- dist/scripts/scripts.js | 1 + dist/scripts/templates.js | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/scripts/constants.js b/app/scripts/constants.js index d5b86131e1..81524b3c33 100644 --- a/app/scripts/constants.js +++ b/app/scripts/constants.js @@ -211,6 +211,7 @@ angular.extend(window.OPENSHIFT_CONSTANTS, { Deprovisioning: true, ErrorCallingProvision: true, ErrorInjectingBindResult: true, + ProvisionCallFailed: true, Provisioning: true, ReferencesNonexistentServiceClass: true, ReferencesNonexistentServicePlan: true, diff --git a/app/views/directives/notifications/notification-body.html b/app/views/directives/notifications/notification-body.html index ce73a36bb7..e9f6521276 100644 --- a/app/views/directives/notifications/notification-body.html +++ b/app/views/directives/notifications/notification-body.html @@ -55,7 +55,7 @@
- {{notification.event.reason | humanize}} — {{notification.event.involvedObject.kind | humanize}} + {{notification.event.reason | humanize}} — {{notification.event.involvedObject.kind | humanizeKind : true}} \n" + "
\n" + "\n" + - "{{notification.event.reason | humanize}} — {{notification.event.involvedObject.kind | humanize}}\n" + + "{{notification.event.reason | humanize}} — {{notification.event.involvedObject.kind | humanizeKind : true}}\n" + "\n" + "\n" + "\n" +