FIX: A component referenced the controller
This commit is contained in:
parent
d39afa9501
commit
1b92d44fb2
|
@ -38,7 +38,6 @@ export default Combobox.extend({
|
|||
@observes('value')
|
||||
_valueChanged() {
|
||||
const value = this.get('value');
|
||||
const controller = this.get('parentView.controller');
|
||||
const topic = this.get('topic');
|
||||
|
||||
const refresh = () => {
|
||||
|
@ -48,7 +47,7 @@ export default Combobox.extend({
|
|||
|
||||
switch(value) {
|
||||
case 'invite':
|
||||
controller.send('showInvite');
|
||||
this.attrs.showInvite();
|
||||
refresh();
|
||||
break;
|
||||
case 'bookmark':
|
||||
|
@ -59,7 +58,7 @@ export default Combobox.extend({
|
|||
refresh();
|
||||
break;
|
||||
case 'flag':
|
||||
controller.send('showFlagTopic');
|
||||
this.attrs.showFlagTopic();
|
||||
refresh();
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
|
||||
{{#unless topic.isPrivateMessage}}
|
||||
{{#if site.mobileView}}
|
||||
{{topic-footer-mobile-dropdown topic=topic}}
|
||||
{{topic-footer-mobile-dropdown topic=topic
|
||||
showInvite=showInvite
|
||||
showFlagTopic=showFlagTopic}}
|
||||
{{else}}
|
||||
{{d-button class=bookmarkClass
|
||||
title=bookmarkTitle
|
||||
|
|
Loading…
Reference in New Issue