FIX: ensure category and tags can be changed from reviewable (#9139)

This commit is contained in:
Joffrey JAFFEUX 2020-03-09 10:01:50 +01:00 committed by GitHub
parent baea65e4bc
commit b850953294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,10 @@
import Component from "@ember/component";
export default Component.extend({
actions: {
onChange(category) {
this.set("value", category);
this.categoryChanged && this.categoryChanged(category);
}
}
});

View File

@ -3,6 +3,8 @@ import Component from "@ember/component";
export default Component.extend({
actions: {
onChange(tags) {
this.set("value", tags);
this.valueChanged &&
this.valueChanged({
target: {

View File

@ -1,4 +1,4 @@
{{category-chooser
value=value
onChange=categoryChanged
onChange=(action "onChange")
}}