Merge pull request #2727 from alecmerdler/fix-create-robot-invalid

Fix Invalid Robot Creation
This commit is contained in:
Alec Merdler 2017-06-23 19:54:46 -07:00 committed by GitHub
commit 76e56d4fca

View file

@ -29,7 +29,7 @@
ng-if="entity"></div> ng-if="entity"></div>
</div> </div>
<div class="modal-body" ng-show="view == 'enterName'"> <div class="modal-body" ng-show="view == 'enterName'">
<form name="enterNameForm" ng-submit="createEntity()"> <form name="enterNameForm" ng-submit="enterNameForm.$valid && createEntity()">
<label>Provide a name for your new {{ entityTitle }}:</label> <label>Provide a name for your new {{ entityTitle }}:</label>
<input type="text" class="form-control" ng-model="entityName" ng-pattern="entityNameRegexObj" required> <input type="text" class="form-control" ng-model="entityName" ng-pattern="entityNameRegexObj" required>
<div class="help-text"> <div class="help-text">