decide.nolog.cz/app/routes/application.js
jelhan f0a09d9aee handle connection issues on user save:
* show error message (modal)
* provide retry button

fixes #66
2015-01-21 01:30:14 +01:00

22 lines
No EOL
543 B
JavaScript

import Ember from "ember";
export default Ember.Route.extend({
actions: {
openModal: function(options){
var modalController = this.controllerFor( 'modal/' + options.template );
modalController.set('model', options.model);
this.render('modal/' + options.template, {
into: 'application',
outlet: 'modal',
controller: modalController
});
},
removeModal: function(){
this.disconnectOutlet({
outlet: 'modal',
parentView: 'application'
});
}
}
});