mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 00:02:05 -05:00
16 lines
363 B
CoffeeScript
16 lines
363 B
CoffeeScript
window.Discourse.AdminFlagsController = Ember.Controller.extend
|
|
|
|
clearFlags: (item) ->
|
|
item.clearFlags().then (=>
|
|
@content.removeObject(item)
|
|
), (->
|
|
bootbox.alert("something went wrong")
|
|
)
|
|
|
|
adminOldFlagsView: (->
|
|
@query == 'old'
|
|
).property('query')
|
|
|
|
adminActiveFlagsView: (->
|
|
@query == 'active'
|
|
).property('query')
|