diff --git a/app/assets/javascripts/discourse/components/composer-editor.js.es6 b/app/assets/javascripts/discourse/components/composer-editor.js.es6 index b637219cd06..3a39a14fd24 100644 --- a/app/assets/javascripts/discourse/components/composer-editor.js.es6 +++ b/app/assets/javascripts/discourse/components/composer-editor.js.es6 @@ -971,16 +971,6 @@ export default Ember.Component.extend({ sendAction: this.onExpandPopupMenuOptions.bind(this), popupMenu: true }); - - if (this.site.mobileView) { - toolbar.addButton({ - id: "preview", - group: "mobileExtras", - icon: "television", - title: "composer.show_preview", - sendAction: this.showPreview.bind(this) - }); - } }, previewUpdated($preview) { diff --git a/app/assets/javascripts/discourse/components/d-editor.js.es6 b/app/assets/javascripts/discourse/components/d-editor.js.es6 index 2e30539f3ef..6ca01d18310 100644 --- a/app/assets/javascripts/discourse/components/d-editor.js.es6 +++ b/app/assets/javascripts/discourse/components/d-editor.js.es6 @@ -142,10 +142,6 @@ class Toolbar { }); } - if (site.mobileView) { - this.groups.push({ group: "mobileExtras", buttons: [] }); - } - this.groups[this.groups.length - 1].lastGroup = true; } diff --git a/app/assets/javascripts/discourse/templates/composer.hbs b/app/assets/javascripts/discourse/templates/composer.hbs index 62a50dbc0b6..99e723803a1 100644 --- a/app/assets/javascripts/discourse/templates/composer.hbs +++ b/app/assets/javascripts/discourse/templates/composer.hbs @@ -159,13 +159,19 @@ {{/if}}