Skip to content

Commit 62fbaf3

Browse files
jeff-phillips-18f0x11
authored andcommitted
Add error message for invalid mount paths when adding secrets to an application
Fixes openshift#2073
1 parent d1335a5 commit 62fbaf3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/views/directives/add-secret-to-application.html

+5
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ <h3>Add to Application</h3>
6767
The mount path is already used. Please choose another mount path.
6868
</span>
6969
</div>
70+
<div class="has-error" ng-show="addToApplicationForm.mountVolume.$error.pattern && addToApplicationForm.mountVolume.$touched">
71+
<span class="help-block">
72+
Mount path must be a valid path to a directory starting with <code>/</code>.
73+
</span>
74+
</div>
7075
</div>
7176
</div>
7277
</div>

dist/scripts/templates.js

+5
Original file line numberDiff line numberDiff line change
@@ -6015,6 +6015,11 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
60156015
"The mount path is already used. Please choose another mount path.\n" +
60166016
"</span>\n" +
60176017
"</div>\n" +
6018+
"<div class=\"has-error\" ng-show=\"addToApplicationForm.mountVolume.$error.pattern && addToApplicationForm.mountVolume.$touched\">\n" +
6019+
"<span class=\"help-block\">\n" +
6020+
"Mount path must be a valid path to a directory starting with <code>/</code>.\n" +
6021+
"</span>\n" +
6022+
"</div>\n" +
60186023
"</div>\n" +
60196024
"</div>\n" +
60206025
"</div>\n" +

0 commit comments

Comments
 (0)