FIX: Incorrect attribute.
This commit is contained in:
parent
7c3e0c6547
commit
5666190462
|
@ -1,7 +1,6 @@
|
||||||
export default {
|
export default {
|
||||||
shouldRender(args, component) {
|
shouldRender(args, component) {
|
||||||
const needsButton = component.currentUser && component.currentUser.get('staff');
|
const needsButton = component.currentUser && component.currentUser.get('staff');
|
||||||
return needsButton && (!component.get('site.mobileView') || args.topic.get('isPrivateMessage'));
|
return needsButton && (!component.get('site.mobileView') || args.model.get('isPrivateMessage'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue