discourse/app/assets/javascripts/discourse/controllers/topic_admin_menu_controller.js
2013-10-01 11:16:27 -04:00

25 lines
516 B
JavaScript

/**
This controller supports the admin menu on topics
@class TopicAdminMenuController
@extends Discourse.ObjectController
@namespace Discourse
@module Discourse
**/
Discourse.TopicAdminMenuController = Discourse.ObjectController.extend({
menuVisible: false,
needs: ['modal'],
actions: {
show: function() {
this.set('menuVisible', true);
},
hide: function() {
this.set('menuVisible', false);
}
},
showRecover: Em.computed.and('deleted', 'details.can_recover')
});