adds typeahead for user names in dataset-author component table. updates template reference to check form validity to ownershipIsInvalid
<div class="tab-body">
<section class="ownership-actions">
<button class="nacho-button nacho-button--large-inverse"
- title={{if requiredMinNotConfirmed
- "Need at least two confirmed owners to make changes"
+ title={{if ownershipIsInvalid
+ "Need at least two confirmed owners to make changes
+ and no Invalid users"
"Save"}}
- disabled={{requiredMinNotConfirmed}}
+ disabled={{ownershipIsInvalid}}
{{action "updateOwners"}}>
Save
</button>
<label class="dataset-author-cell__name-tag">
{{owner.userName}}
</label>
- <input class="userEntity dataset-author-cell__user-name"
- type="text"
- placeholder="Enter Username"
- autofocus="autofocus"
- title="{{owner.userName}}"
- value="{{owner.userName}}"
- onblur={{action "editUserName" owner}}/>
+ {{aupac-typeahead
+ action=(action "editUserName" owner)
+ autoFocus=true
+ source=userNamesResolver
+ async=true
+ limit=10
+ minLength=2
+ placeholder="Find username"
+ title="username"
+ class="form-control dataset-author-cell__user-name"}}
</td>
<td>{{owner.name}}</td>
<td>{{owner.idType}}</td>
