Skip to content

Commit eca0f37

Browse files
Add error message for invalid mount paths when adding secrets to an application
Fixes openshift#2073
1 parent b16134b commit eca0f37

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
@@ -5607,6 +5607,11 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
56075607
"The mount path is already used. Please choose another mount path.\n" +
56085608
"</span>\n" +
56095609
"</div>\n" +
5610+
"<div class=\"has-error\" ng-show=\"addToApplicationForm.mountVolume.$error.pattern && addToApplicationForm.mountVolume.$touched\">\n" +
5611+
"<span class=\"help-block\">\n" +
5612+
"Mount path must be a valid path to a directory starting with <code>/</code>.\n" +
5613+
"</span>\n" +
5614+
"</div>\n" +
56105615
"</div>\n" +
56115616
"</div>\n" +
56125617
"</div>\n" +

0 commit comments

Comments
 (0)