Refactor the entity-search directive/control to make its interface much cleaner and to add support for ng-model validity checking
This commit is contained in:
parent
df7b8d651c
commit
3865e3b1b7
8 changed files with 234 additions and 155 deletions
|
@ -62,6 +62,12 @@
|
|||
<input type="email" class="form-control" ng-model="currentConfig[field.name]" ng-switch-when="email" required>
|
||||
<input type="url" class="form-control" ng-model="currentConfig[field.name]" ng-switch-when="url" required>
|
||||
<input type="text" class="form-control" ng-model="currentConfig[field.name]" ng-switch-when="string" required>
|
||||
<div class="entity-search" namespace="repository.namespace"
|
||||
placeholder="''"
|
||||
current-entity="currentConfig[field.name]"
|
||||
ng-model="currentConfig[field.name]"
|
||||
allowed-entities="['user', 'team']"
|
||||
ng-switch-when="entity">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Reference in a new issue