diff --git a/blueprints/modal/files/app/components/__name__-__path__/component.js b/blueprints/modal/files/app/components/__name__-__path__/component.js index 867e15fcd..b46c34adb 100644 --- a/blueprints/modal/files/app/components/__name__-__path__/component.js +++ b/blueprints/modal/files/app/components/__name__-__path__/component.js @@ -1,6 +1,12 @@ import Ember from 'ember'; import ModalBase from 'ui/mixins/modal-base'; +// Dont forget to launch your modal from the route/controller/component with the following command. +// this.get('modalService').toggleModal('modal-<%= dasherizedModuleName %>', { +// add your modal options here +// }); + + export default Ember.Component.extend(ModalBase, { - classNames: [`${<%= size %>}`], + classNames: ['<%= size %>'], }); diff --git a/blueprints/modal/index.js b/blueprints/modal/index.js index 5884d49f8..72bfb9103 100644 --- a/blueprints/modal/index.js +++ b/blueprints/modal/index.js @@ -6,7 +6,7 @@ module.exports = { // Return custom template variables here. return { // options are large-modal or medium-modal - size: `${options.entity.options.size}` || 'medium-modal' + size: options.entity.options.size || 'medium-modal' }; }