FEATURE: hide bookmarks but always show if post is bookmarked

This commit is contained in:
Sam 2014-11-21 11:52:46 +11:00
parent baf8a5cac2
commit df99591f10
2 changed files with 5 additions and 1 deletions

View file

@ -97,6 +97,10 @@ export default Discourse.View.extend({
}
}
if(post.get("bookmarked")){
hiddenButtons.removeObject("bookmark");
}
var yours = post.get('yours');
Discourse.SiteSettings.post_menu.split("|").forEach(function(i) {
var creator = self["buttonFor" + i.replace(/\+/, '').capitalize()];

View file

@ -108,7 +108,7 @@ basic:
post_menu_hidden_items:
client: true
type: list
default: 'edit|delete|admin'
default: 'bookmark|edit|delete|admin'
choices:
- like
- edit