use this.assign
This commit is contained in:
parent
e8f51e6a25
commit
ba31b67df3
|
|
@ -72,8 +72,8 @@ export default Controller.extend(ModalFunctionality, {
|
|||
},
|
||||
|
||||
@action
|
||||
handleTextAreaKeydown(value) {
|
||||
if ((value.ctrlKey || value.metaKey) && value.key === "Enter") {
|
||||
handleTextAreaKeydown(event) {
|
||||
if ((event.ctrlKey || event.metaKey) && event.key === "Enter") {
|
||||
this.assign();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
"discourse_assign.assign_modal.assign"
|
||||
}}
|
||||
@icon={{inviteIcon}}
|
||||
@action={{(action "assign")}}
|
||||
@action={{this.assign}}
|
||||
class="btn-primary"
|
||||
@disabled={{disabled}}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue