mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
FEATURE: Allow admins to reply without topic bump
This commit is contained in:
@ -192,6 +192,17 @@ export default DropdownSelectBoxComponent.extend({
|
||||
});
|
||||
}
|
||||
|
||||
const currentUser = Discourse.User.current();
|
||||
|
||||
if (action === REPLY && currentUser && currentUser.get("staff")) {
|
||||
items.push({
|
||||
name: I18n.t("composer.composer_actions.toggle_topic_bump.label"),
|
||||
description: I18n.t("composer.composer_actions.toggle_topic_bump.desc"),
|
||||
icon: "anchor",
|
||||
id: "toggle_topic_bump"
|
||||
});
|
||||
}
|
||||
|
||||
return items;
|
||||
},
|
||||
|
||||
@ -234,6 +245,10 @@ export default DropdownSelectBoxComponent.extend({
|
||||
model.toggleProperty("whisper");
|
||||
},
|
||||
|
||||
toggleTopicBumpSelected(options, model) {
|
||||
model.toggleProperty("noBump");
|
||||
},
|
||||
|
||||
replyToTopicSelected(options) {
|
||||
options.action = REPLY;
|
||||
options.topic = _topicSnapshot;
|
||||
|
Reference in New Issue
Block a user