mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 07:12:17 +08:00
FEATURE: hide bookmarks but always show if post is bookmarked
This commit is contained in:
@ -97,6 +97,10 @@ export default Discourse.View.extend({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(post.get("bookmarked")){
|
||||||
|
hiddenButtons.removeObject("bookmark");
|
||||||
|
}
|
||||||
|
|
||||||
var yours = post.get('yours');
|
var yours = post.get('yours');
|
||||||
Discourse.SiteSettings.post_menu.split("|").forEach(function(i) {
|
Discourse.SiteSettings.post_menu.split("|").forEach(function(i) {
|
||||||
var creator = self["buttonFor" + i.replace(/\+/, '').capitalize()];
|
var creator = self["buttonFor" + i.replace(/\+/, '').capitalize()];
|
||||||
|
@ -108,7 +108,7 @@ basic:
|
|||||||
post_menu_hidden_items:
|
post_menu_hidden_items:
|
||||||
client: true
|
client: true
|
||||||
type: list
|
type: list
|
||||||
default: 'edit|delete|admin'
|
default: 'bookmark|edit|delete|admin'
|
||||||
choices:
|
choices:
|
||||||
- like
|
- like
|
||||||
- edit
|
- edit
|
||||||
|
Reference in New Issue
Block a user