mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FEATURE: hide bookmarks but always show if post is bookmarked
This commit is contained in:
parent
baf8a5cac2
commit
df99591f10
2 changed files with 5 additions and 1 deletions
|
@ -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()];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue