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
|
@ -83,9 +83,11 @@
|
|||
<tr ng-show="!newForWholeOrg">
|
||||
<td>Repository Creator:</td>
|
||||
<td>
|
||||
<span class="entity-search" namespace="organization.name" input-title="'User/Robot'"
|
||||
is-organization="true" include-teams="false" current-entity="activatingForNew" is-persistent="true"
|
||||
clear-now="clearCounter">
|
||||
<span class="entity-search" namespace="organization.name"
|
||||
placeholder="'User/Robot'"
|
||||
allowed-entities="['user', 'robot']"
|
||||
current-entity="activatingForNew"
|
||||
clear-value="clearCounter">
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -98,9 +100,9 @@
|
|||
<tr>
|
||||
<td>Applied To:</td>
|
||||
<td>
|
||||
<span class="entity-search" namespace="organization.name" input-title="'User/Robot/Team'"
|
||||
is-organization="true" include-teams="true" current-entity="delegateForNew" is-persistent="true"
|
||||
clear-now="clearCounter">
|
||||
<span class="entity-search" namespace="organization.name" placeholder="'User/Robot/Team'"
|
||||
current-entity="delegateForNew"
|
||||
clear-value="clearCounter">
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Reference in a new issue