mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 03:34:11 +08:00
24 lines
520 B
CoffeeScript
24 lines
520 B
CoffeeScript
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")
|
|
)
|
|
|
|
adminOldFlagsView: (->
|
|
@query == 'old'
|
|
).property('query')
|
|
|
|
adminActiveFlagsView: (->
|
|
@query == 'active'
|
|
).property('query')
|