discourse/app/assets/javascripts/admin/controllers/admin_flags_controller.js.coffee

24 lines
520 B
CoffeeScript
Raw Normal View History

2013-02-05 14:16:51 -05:00
window.Discourse.AdminFlagsController = Ember.Controller.extend
clearFlags: (item) ->
item.clearFlags().then (=>
@content.removeObject(item)
), (->
bootbox.alert("something went wrong")
)
deletePost: (item) ->
item.deletePost().then (=>
@content.removeObject(item)
), (->
bootbox.alert("something went wrong")
)
2013-02-05 14:16:51 -05:00
adminOldFlagsView: (->
@query == 'old'
).property('query')
adminActiveFlagsView: (->
@query == 'active'
).property('query')