remove usage of Discourse.User, use import instead

This commit is contained in:
Sam 2015-11-27 15:44:37 +11:00
parent 878d6d6d80
commit c612a4dce6
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import PostMenuComponent from 'discourse/components/post-menu';
import PostView from 'discourse/views/post';
import PostMenuComponent from 'discourse/components/post-menu';
import { Button } from 'discourse/components/post-menu';
import Topic from 'discourse/models/topic';
import User from 'discourse/models/user';
@ -56,7 +56,7 @@ export default {
var canAccept = this.get('post.can_accept_answer');
var canUnaccept = this.get('post.can_unaccept_answer');
var accepted = this.get('post.accepted_answer');
var isOp = Discourse.User.currentProp("id") === this.get('post.topic.user_id');
var isOp = User.currentProp("id") === this.get('post.topic.user_id');
if (!accepted && canAccept && !isOp) {
// first hidden position