mirror of https://github.com/rancher/ui.git
add new modal blueprint
This commit is contained in:
parent
c00f0e32b3
commit
fe7007d068
|
|
@ -1,5 +1,7 @@
|
||||||
{
|
{
|
||||||
"predef": [
|
"predef": [
|
||||||
"console"
|
"console"
|
||||||
]
|
],
|
||||||
|
"strict": false,
|
||||||
|
"esversion": 6
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
import Ember from 'ember';
|
||||||
|
import ModalBase from 'ui/mixins/modal-base';
|
||||||
|
|
||||||
|
export default Ember.Component.extend(ModalBase, {
|
||||||
|
classNames: [`${<%= size %>}`],
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
<div class="container-header-text">
|
||||||
|
</div>
|
||||||
|
<div class="footer-actions">
|
||||||
|
</div>
|
||||||
|
|
@ -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.
|
||||||
|
// }
|
||||||
|
};
|
||||||
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue