FIX: A component referenced the controller

This commit is contained in:
Robin Ward 2017-01-06 10:45:48 -05:00
parent d39afa9501
commit 1b92d44fb2
2 changed files with 5 additions and 4 deletions

View File

@ -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;
}

View File

@ -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