2014-12-20 14:26:46 +08:00
|
|
|
import Ember from 'ember';
|
2014-12-20 18:36:15 +08:00
|
|
|
// import ApplicationRouteMixin from 'simple-auth/mixins/application-route-mixin';
|
2014-12-20 14:26:46 +08:00
|
|
|
|
2014-12-20 18:36:15 +08:00
|
|
|
// export default Ember.Route.extend(ApplicationRouteMixin, {
|
2014-12-20 14:26:46 +08:00
|
|
|
|
2014-12-20 18:36:15 +08:00
|
|
|
// actions: {
|
2014-12-20 14:26:46 +08:00
|
|
|
|
2014-12-20 18:36:15 +08:00
|
|
|
// login: function() {
|
|
|
|
// return this.render('login', {
|
|
|
|
// into: 'application',
|
|
|
|
// outlet: 'modal'
|
|
|
|
// });
|
|
|
|
// },
|
2014-12-20 14:26:46 +08:00
|
|
|
|
2014-12-20 18:36:15 +08:00
|
|
|
// doLogin: function() {
|
|
|
|
// this.get('session').authenticate('authenticator:custom', {});
|
|
|
|
// },
|
2014-12-20 14:26:46 +08:00
|
|
|
|
2014-12-20 18:36:15 +08:00
|
|
|
// closeModal: function() {
|
|
|
|
// return this.disconnectOutlet({
|
|
|
|
// outlet: 'modal',
|
|
|
|
// parentView: 'application'
|
|
|
|
// });
|
|
|
|
// }
|
2014-12-20 14:26:46 +08:00
|
|
|
|
2014-12-20 18:36:15 +08:00
|
|
|
// }
|
2014-12-20 14:26:46 +08:00
|
|
|
|
2014-12-20 18:36:15 +08:00
|
|
|
// });
|
|
|
|
|
|
|
|
export default Ember.Route.extend();
|