FIX: makes updates of search term work with core update
This commit is contained in:
parent
e645cc303f
commit
1cc42e5c9a
|
@ -1,12 +1,13 @@
|
|||
<div class="control-group pull-left">
|
||||
<label class="control-label" for="search-assigned-to">{{i18n "search.advanced.assigned.label"}}</label>
|
||||
<div class="controls">
|
||||
{{user-selector
|
||||
excludeCurrentUser=false
|
||||
usernames=searchedTerms.assigned
|
||||
single=true
|
||||
canReceiveUpdates=true
|
||||
class="user-selector-assigned"
|
||||
{{user-chooser
|
||||
value=searchedTerms.assigned
|
||||
onChange=(action "onChangeAssigned")
|
||||
options=(hash
|
||||
maximum=1
|
||||
excludeCurrentUser=false
|
||||
)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -2,4 +2,15 @@ export default {
|
|||
shouldRender(args, component) {
|
||||
return component.currentUser && component.currentUser.can_assign;
|
||||
},
|
||||
|
||||
actions: {
|
||||
onChangeAssigned(value) {
|
||||
if (this.onChangeSearchedTermField) {
|
||||
this.onChangeSearchedTermField("assigned", "_updateInRegex", value);
|
||||
}
|
||||
{
|
||||
this.set("searchedTerms.assigned", value);
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue