diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 852d1d8cd9d..2a4085f785e 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -59,7 +59,6 @@ //= require ./discourse/models/user-badge //= require ./discourse/controllers/discovery-sortable //= require ./discourse/controllers/navigation/default -//= require ./discourse/views/modal-body //= require ./discourse/components/edit-category-panel //= require ./discourse/components/dropdown-button //= require ./discourse/components/notifications-button diff --git a/app/assets/javascripts/discourse/components/d-modal-body.js.es6 b/app/assets/javascripts/discourse/components/d-modal-body.js.es6 index 0753cf4fef7..fa2d8fa168c 100644 --- a/app/assets/javascripts/discourse/components/d-modal-body.js.es6 +++ b/app/assets/javascripts/discourse/components/d-modal-body.js.es6 @@ -22,8 +22,6 @@ export default Ember.Component.extend({ } } - this.appEvents.trigger('modal:body-shown', { - title: this.get('title') - }); + this.appEvents.trigger('modal:body-shown', this.getProperties('title')); } }); diff --git a/app/assets/javascripts/discourse/lib/show-modal.js.es6 b/app/assets/javascripts/discourse/lib/show-modal.js.es6 index 6b5b91c9d96..e34d7398ef0 100644 --- a/app/assets/javascripts/discourse/lib/show-modal.js.es6 +++ b/app/assets/javascripts/discourse/lib/show-modal.js.es6 @@ -18,7 +18,7 @@ export default function(name, opts) { } else { const templateName = opts.templateName || Ember.String.dasherize(name); - const renderArgs = { into: 'modal', outlet: 'modalBody', view: 'modal-body'}; + const renderArgs = { into: 'modal', outlet: 'modalBody'}; if (controller) { renderArgs.controller = controllerName; } const modalName = `modal/${templateName}`; diff --git a/app/assets/javascripts/discourse/routes/application.js.es6 b/app/assets/javascripts/discourse/routes/application.js.es6 index e2c3aa3f6aa..187199ff533 100644 --- a/app/assets/javascripts/discourse/routes/application.js.es6 +++ b/app/assets/javascripts/discourse/routes/application.js.es6 @@ -127,12 +127,12 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, { }, editCategory(category) { - Category.reloadById(category.get('id')).then((atts) => { + Category.reloadById(category.get('id')).then(atts => { const model = this.store.createRecord('category', atts.category); model.setupGroupsAndPermissions(); this.site.updateCategory(model); - showModal('editCategory', { model }); - this.controllerFor('editCategory').set('selectedTab', 'general'); + showModal('edit-category', { model }); + this.controllerFor('edit-category').set('selectedTab', 'general'); }); }, diff --git a/app/assets/javascripts/discourse/routes/discovery-categories.js.es6 b/app/assets/javascripts/discourse/routes/discovery-categories.js.es6 index 13fecc98f80..ad7118fcc0e 100644 --- a/app/assets/javascripts/discourse/routes/discovery-categories.js.es6 +++ b/app/assets/javascripts/discourse/routes/discovery-categories.js.es6 @@ -117,8 +117,8 @@ const DiscoveryCategoriesRoute = Discourse.Route.extend(OpenComposer, { allow_badges: true }); - showModal("editCategory", { model }); - this.controllerFor("editCategory").set("selectedTab", "general"); + showModal("edit-category", { model }); + this.controllerFor("edit-category").set("selectedTab", "general"); }, reorderCategories() { diff --git a/app/assets/javascripts/discourse/templates/modal/change-owner.hbs b/app/assets/javascripts/discourse/templates/modal/change-owner.hbs index fea9e119d25..c23cefd4692 100644 --- a/app/assets/javascripts/discourse/templates/modal/change-owner.hbs +++ b/app/assets/javascripts/discourse/templates/modal/change-owner.hbs @@ -1,4 +1,4 @@ -
{{{i18n 'topic.change_owner.instructions_warn'}}} @@ -8,8 +8,7 @@ {{user-selector single="true" usernames=new_user placeholderKey="topic.change_owner.placeholder"}} - -