FIX: Fix the shortcut shift+p for pinning/unpinning a topic

This commit is contained in:
cpradio 2015-10-20 09:40:43 -04:00
parent 35496cae4f
commit d2502bd127
1 changed files with 4 additions and 3 deletions

View File

@ -374,10 +374,11 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
togglePinnedForUser() {
if (this.get('model.pinned_at')) {
if (this.get('pinned')) {
this.get('content').clearPin();
const topic = this.get('content');
if (topic.get('pinned')) {
topic.clearPin();
} else {
this.get('content').rePin();
topic.rePin();
}
}
},