From 65f0339146e8b741cb82d053c5ba45675d1d2c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 7 Jan 2015 10:53:12 +0100 Subject: [PATCH] FIX: un-delete topic wasn't working --- app/assets/javascripts/discourse/controllers/topic.js.es6 | 4 ++++ .../javascripts/discourse/templates/topic-admin-menu.hbs | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/topic.js.es6 b/app/assets/javascripts/discourse/controllers/topic.js.es6 index db94ea85bc3..672ea331325 100644 --- a/app/assets/javascripts/discourse/controllers/topic.js.es6 +++ b/app/assets/javascripts/discourse/controllers/topic.js.es6 @@ -328,6 +328,10 @@ export default ObjectController.extend(Discourse.SelectedPostsCount, BufferedCon this.get('content').toggleStatus('closed'); }, + recoverTopic: function() { + this.get('content').recover(); + }, + makeBanner: function() { this.get('content').makeBanner(); }, diff --git a/app/assets/javascripts/discourse/templates/topic-admin-menu.hbs b/app/assets/javascripts/discourse/templates/topic-admin-menu.hbs index 0b724ec2477..6460b92176c 100644 --- a/app/assets/javascripts/discourse/templates/topic-admin-menu.hbs +++ b/app/assets/javascripts/discourse/templates/topic-admin-menu.hbs @@ -1,9 +1,9 @@

{{i18n 'admin_title'}}