@@ -6711,8 +6711,13 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
6711
6711
"</div>\n" +
6712
6712
"<div ng-if=\"entry.configMapRef.name || entry.secretRef.name\" class=\"faux-form-control readonly\">\n" +
6713
6713
"Use all keys and values from\n" +
6714
- "<span ng-if=\"entry.configMapRef.name\">config map {{entry.configMapRef.name}}</span>\n" +
6715
- "<span ng-if=\"entry.secretRef.name\">secret {{entry.secretRef.name}}</span>\n" +
6714
+ "<span ng-if=\"entry.prefix\">prefixed</span>\n" +
6715
+ "<span ng-if=\"entry.configMapRef.name\">config map\n" +
6716
+ "<span ng-if=\"entry.prefix\">\"{{entry.prefix}}\"</span>\n" +
6717
+ "{{entry.configMapRef.name}}</span>\n" +
6718
+ "<span ng-if=\"entry.secretRef.name\">secret\n" +
6719
+ "<span ng-if=\"entry.prefix\">\"{{entry.prefix}}\"</span>\n" +
6720
+ "{{entry.secretRef.name}}</span>\n" +
6716
6721
"</div>\n" +
6717
6722
"</div>\n" +
6718
6723
"<div ng-if=\"!$ctrl.isEnvFromReadonly(entry) && $ctrl.hasOptions()\">\n" +
@@ -6730,13 +6735,22 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
6730
6735
"</ui-select>\n" +
6731
6736
"</div>\n" +
6732
6737
"</div>\n" +
6738
+ "<div ng-if=\"!$ctrl.isEnvFromReadonly(entry) && $ctrl.hasOptions() && (entry.prefix || entry.addPrefix)\">\n" +
6739
+ "<label for=\"envfrom-prefix-{{$index}}\" class=\"sr-only\">Prefix</label>\n" +
6740
+ "<input type=\"text\" class=\"form-control\" placeholder=\"Add prefix\" id=\"envfrom-prefix-{{$index}}\" name=\"envfrom-prefix-{{$index}}\" ng-model=\"entry.prefix\"/>\n" +
6741
+ "</div>\n" +
6733
6742
"</div>\n" +
6734
6743
"<div ng-if=\"!$ctrl.isEnvFromReadonly(entry) && $ctrl.hasEntries()\" class=\"environment-from-editor-button\">\n" +
6735
6744
"<span ng-if=\"!$ctrl.cannotSort && $ctrl.entries.length > 1\" class=\"fa fa-bars sort-row\" role=\"button\" aria-label=\"Move row\" aria-grabbed=\"false\" as-sortable-item-handle></span>\n" +
6736
6745
"<a ng-if=\"!$ctrl.cannotDeleteAny\" href=\"\" class=\"pficon pficon-close delete-row as-sortable-item-delete\" role=\"button\" aria-label=\"Delete row\" ng-click=\"$ctrl.deleteEntry($index, 1)\"></a>\n" +
6737
6746
"</div>\n" +
6738
- "<div class=\"environment-from-view-details\">\n" +
6739
- "<a href=\"\" ng-if=\"entry.selectedEnvFrom\" ng-click=\"$ctrl.viewOverlayPanel(entry.selectedEnvFrom)\">View Details</a>\n" +
6747
+ "<div class=\"environment-from-view-details\" ng-if=\"entry.selectedEnvFrom\">\n" +
6748
+ "<a href=\"\" ng-click=\"$ctrl.viewOverlayPanel(entry.selectedEnvFrom)\">View Details</a>\n" +
6749
+ "<span ng-if=\"!$ctrl.isEnvFromReadonly(entry) && $ctrl.hasOptions()\">\n" +
6750
+ "<span class=\"action-divider\" aria-hidden=\"true\"> | </span>\n" +
6751
+ "<a href=\"\" ng-click=\"entry.addPrefix = !entry.addPrefix; $ctrl.removePrefix(entry)\">\n" +
6752
+ "{{entry.prefix || entry.addPrefix ? \"Remove\" : \"Add\"}} Prefix</a>\n" +
6753
+ "</span>\n" +
6740
6754
"</div>\n" +
6741
6755
"</div>\n" +
6742
6756
"<div class=\"environment-from-entry form-group\" ng-if=\"!$ctrl.isEnvFromReadonly() && $ctrl.hasOptions()\">\n" +
0 commit comments