diff --git a/app/assets/javascripts/discourse/views/post_menu_view.js.coffee b/app/assets/javascripts/discourse/views/post_menu_view.js.coffee index 9d67b30fb6c..25959a865e8 100644 --- a/app/assets/javascripts/discourse/views/post_menu_view.js.coffee +++ b/app/assets/javascripts/discourse/views/post_menu_view.js.coffee @@ -50,12 +50,18 @@ window.Discourse.PostMenuView = Ember.View.extend Discourse.Presence, # Delete button renderDelete: (post, buffer) -> + if post.get('post_number') == 1 and @get('controller.content.can_delete') + buffer.push("") + return + + # Show the correct button if post.get('deleted_at') if post.get('can_recover') buffer.push("") else if post.get('can_delete') buffer.push("") + clickDeleteTopic: -> @get('controller').deleteTopic() clickRecover: -> @get('controller').recoverPost(@get('post')) clickDelete: -> @get('controller').deletePost(@get('post'))