mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 14:38:31 +08:00
21 lines
494 B
JavaScript
21 lines
494 B
JavaScript
import ObjectController from 'discourse/controllers/object';
|
|
|
|
/**
|
|
This controller supports the admin menu on topics
|
|
|
|
@class TopicAdminMenuController
|
|
@extends ObjectController
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
export default ObjectController.extend({
|
|
menuVisible: false,
|
|
showRecover: Em.computed.and('deleted', 'details.can_recover'),
|
|
|
|
actions: {
|
|
show: function() { this.set('menuVisible', true); },
|
|
hide: function() { this.set('menuVisible', false); }
|
|
}
|
|
|
|
});
|