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') @observes('value')
_valueChanged() { _valueChanged() {
const value = this.get('value'); const value = this.get('value');
const controller = this.get('parentView.controller');
const topic = this.get('topic'); const topic = this.get('topic');
const refresh = () => { const refresh = () => {
@ -48,7 +47,7 @@ export default Combobox.extend({
switch(value) { switch(value) {
case 'invite': case 'invite':
controller.send('showInvite'); this.attrs.showInvite();
refresh(); refresh();
break; break;
case 'bookmark': case 'bookmark':
@ -59,7 +58,7 @@ export default Combobox.extend({
refresh(); refresh();
break; break;
case 'flag': case 'flag':
controller.send('showFlagTopic'); this.attrs.showFlagTopic();
refresh(); refresh();
break; break;
} }

View File

@ -17,7 +17,9 @@
{{#unless topic.isPrivateMessage}} {{#unless topic.isPrivateMessage}}
{{#if site.mobileView}} {{#if site.mobileView}}
{{topic-footer-mobile-dropdown topic=topic}} {{topic-footer-mobile-dropdown topic=topic
showInvite=showInvite
showFlagTopic=showFlagTopic}}
{{else}} {{else}}
{{d-button class=bookmarkClass {{d-button class=bookmarkClass
title=bookmarkTitle title=bookmarkTitle