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')
|
@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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue