FIX: ensure category and tags can be changed from reviewable (#9139)
This commit is contained in:
parent
baea65e4bc
commit
b850953294
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
|
@ -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: {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{category-chooser
|
||||
value=value
|
||||
onChange=categoryChanged
|
||||
onChange=(action "onChange")
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue