This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/controllers/topic-admin-menu.js.es6
2014-08-13 10:22:47 -04:00

27 lines
535 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,
needs: ['modal'],
actions: {
show: function() {
this.set('menuVisible', true);
},
hide: function() {
this.set('menuVisible', false);
}
},
showRecover: Em.computed.and('deleted', 'details.can_recover')
});