mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-03 12:27:35 -05:00
25 lines
516 B
JavaScript
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')
|
|
|
|
});
|