flagging workflow changes per http://meta.discourse.org/t/we-need-an-archive-flag-notification-button/7450
This commit is contained in:
@@ -63,10 +63,22 @@ Discourse.FlaggedPost = Discourse.Post.extend({
|
||||
}
|
||||
},
|
||||
|
||||
clearFlags: function() {
|
||||
return Discourse.ajax("/admin/flags/clear/" + this.id, { type: 'POST', cache: false });
|
||||
disagreeFlags: function() {
|
||||
return Discourse.ajax("/admin/flags/disagree/" + this.id, { type: 'POST', cache: false });
|
||||
},
|
||||
|
||||
deferFlags: function() {
|
||||
return Discourse.ajax("/admin/flags/defer/" + this.id, { type: 'POST', cache: false });
|
||||
},
|
||||
|
||||
agreeFlags: function() {
|
||||
return Discourse.ajax("/admin/flags/agree/" + this.id, { type: 'POST', cache: false });
|
||||
},
|
||||
|
||||
postHidden: function() {
|
||||
return (this.get('hidden') === "t");
|
||||
}.property(),
|
||||
|
||||
hiddenClass: function() {
|
||||
if (this.get('hidden') === "t") return "hidden-post";
|
||||
}.property()
|
||||
|
||||
Reference in New Issue
Block a user