From 3a0c9fb6d00af8df4a82af94eebe2e48b67d6b21 Mon Sep 17 00:00:00 2001 From: Jakub Hadvig Date: Tue, 2 Jan 2018 16:35:33 +0100 Subject: [PATCH] Make warning message more accurate when adding invalid secret/configMap --- app/views/directives/add-config-to-application.html | 2 +- app/views/directives/edit-environment-from.html | 3 ++- dist/scripts/templates.js | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/directives/add-config-to-application.html b/app/views/directives/add-config-to-application.html index f022620c7e..5603365012 100644 --- a/app/views/directives/add-config-to-application.html +++ b/app/views/directives/add-config-to-application.html @@ -39,7 +39,7 @@

Add to Application

- Some of the keys for {{ctrl.apiObject.kind | humanizeKind}} {{ctrl.apiObject.metadata.name}} are not valid environment variable names and will not be added. + {{ctrl.apiObject.kind | humanizeKind | upperFirst}} {{ctrl.apiObject.metadata.name}} contains keys that are not valid environment variable names. Only {{ctrl.apiObject.kind | humanizeKind}} keys with valid names will be added as environment variables.
diff --git a/app/views/directives/edit-environment-from.html b/app/views/directives/edit-environment-from.html index b6fe8e9815..78723a090c 100644 --- a/app/views/directives/edit-environment-from.html +++ b/app/views/directives/edit-environment-from.html @@ -62,7 +62,8 @@
-
Some of the keys for {{entry.selectedEnvFrom.kind | humanizeKind}} {{entry.selectedEnvFrom.metadata.name}} are not valid environment variable names and will not be added.
+
{{entry.selectedEnvFrom.kind | humanizeKind | upperFirst}} {{entry.selectedEnvFrom.metadata.name}} contains keys that are not valid environment variable names. Only {{entry.selectedEnvFrom.kind | humanizeKind}} keys with valid names will be added as environment variables. +
diff --git a/dist/scripts/templates.js b/dist/scripts/templates.js index e289ac6d06..b2071f278c 100644 --- a/dist/scripts/templates.js +++ b/dist/scripts/templates.js @@ -5758,7 +5758,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function( "
\n" + "
\n" + "\n" + - "Some of the keys for {{ctrl.apiObject.kind | humanizeKind}} {{ctrl.apiObject.metadata.name}} are not valid environment variable names and will not be added.\n" + + "{{ctrl.apiObject.kind | humanizeKind | upperFirst}} {{ctrl.apiObject.metadata.name}} contains keys that are not valid environment variable names. Only {{ctrl.apiObject.kind | humanizeKind}} keys with valid names will be added as environment variables.\n" + "
\n" + "
\n" + "
\n" + @@ -6722,7 +6722,8 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function( "\n" + "
\n" + "
\n" + - "
Some of the keys for {{entry.selectedEnvFrom.kind | humanizeKind}} {{entry.selectedEnvFrom.metadata.name}} are not valid environment variable names and will not be added.
\n" + + "
{{entry.selectedEnvFrom.kind | humanizeKind | upperFirst}} {{entry.selectedEnvFrom.metadata.name}} contains keys that are not valid environment variable names. Only {{entry.selectedEnvFrom.kind | humanizeKind}} keys with valid names will be added as environment variables.\n" + + "
\n" + "
\n" + "\n" + "\n" +