add new modal blueprint

This commit is contained in:
Westly Wright 2017-03-16 16:25:33 -07:00
parent c00f0e32b3
commit fe7007d068
No known key found for this signature in database
GPG Key ID: 90C6F54EB2513CAE
5 changed files with 30 additions and 2 deletions

View File

@ -1,5 +1,7 @@
{
"predef": [
"console"
]
],
"strict": false,
"esversion": 6
}

View File

@ -0,0 +1,6 @@
import Ember from 'ember';
import ModalBase from 'ui/mixins/modal-base';
export default Ember.Component.extend(ModalBase, {
classNames: [`${<%= size %>}`],
});

View File

@ -0,0 +1,4 @@
<div class="container-header-text">
</div>
<div class="footer-actions">
</div>

16
blueprints/modal/index.js Normal file
View File

@ -0,0 +1,16 @@
/*jshint node:true*/
module.exports = {
description: 'Rancher specific modal',
locals: function(options) {
// Return custom template variables here.
return {
// options are large-modal or medium-modal
size: `${options.entity.options.size}` || 'medium-modal'
};
}
// afterInstall: function(options) {
// // Perform extra work here.
// }
};

View File

@ -1 +1 @@
module.exports = require('../../node_modules/ember-cli/blueprints/route/index.js');
module.exports = require('../../node_modules/ember-cli-legacy-blueprints/blueprints/route/index.js');