FIX: un-delete topic wasn't working

This commit is contained in:
Régis Hanol 2015-01-07 10:53:12 +01:00
parent 66882155f0
commit 65f0339146
2 changed files with 7 additions and 3 deletions

View File

@ -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();
},

View File

@ -1,9 +1,9 @@
<h3>{{i18n 'admin_title'}}</h3>
<ul>
<li>
<button {{action "toggleMultiSelect"}} class='btn btn-admin'>{{fa-icon tasks}} {{i18n 'topic.actions.multi_select'}}</button>
</li>
<li>
<button {{action "toggleMultiSelect"}} class='btn btn-admin'>{{fa-icon tasks}} {{i18n 'topic.actions.multi_select'}}</button>
</li>
{{#if details.can_delete}}
<li>