Skip to content

Commit

Permalink
Add error message for invalid mount paths when adding secrets to an a…
Browse files Browse the repository at this point in the history
…pplication

Fixes #2073
  • Loading branch information
jeff-phillips-18 committed Sep 14, 2017
1 parent b16134b commit eca0f37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/directives/add-secret-to-application.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ <h3>Add to Application</h3>
The mount path is already used. Please choose another mount path.
</span>
</div>
<div class="has-error" ng-show="addToApplicationForm.mountVolume.$error.pattern && addToApplicationForm.mountVolume.$touched">
<span class="help-block">
Mount path must be a valid path to a directory starting with <code>/</code>.
</span>
</div>
</div>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions dist/scripts/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -5607,6 +5607,11 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"The mount path is already used. Please choose another mount path.\n" +
"</span>\n" +
"</div>\n" +
"<div class=\"has-error\" ng-show=\"addToApplicationForm.mountVolume.$error.pattern && addToApplicationForm.mountVolume.$touched\">\n" +
"<span class=\"help-block\">\n" +
"Mount path must be a valid path to a directory starting with <code>/</code>.\n" +
"</span>\n" +
"</div>\n" +
"</div>\n" +
"</div>\n" +
"</div>\n" +
Expand Down

0 comments on commit eca0f37

Please sign in to comment.