FEATURE: Allow admins to reply without topic bump

This commit is contained in:
Gerhard Schlager
2018-08-10 02:48:30 +02:00
committed by Sam
parent 6ec92d5845
commit ef4b9f98c1
10 changed files with 182 additions and 10 deletions

View File

@ -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;