mirror of
https://github.com/flarum/framework.git
synced 2024-12-15 16:53:37 +08:00
c2feae406d
- Allow dropdown-buttons to render a partial
27 lines
523 B
JavaScript
27 lines
523 B
JavaScript
import Ember from 'ember';
|
|
import ApplicationRouteMixin from 'simple-auth/mixins/application-route-mixin';
|
|
|
|
export default Ember.Route.extend(ApplicationRouteMixin, {
|
|
|
|
actions: {
|
|
login: function() {
|
|
this.controllerFor('login').set('error', null);
|
|
this.render('login', {
|
|
into: 'application',
|
|
outlet: 'modal'
|
|
});
|
|
},
|
|
|
|
closeModal: function() {
|
|
this.disconnectOutlet({
|
|
outlet: 'modal',
|
|
parentView: 'application'
|
|
});
|
|
},
|
|
|
|
sessionChanged: function() {
|
|
this.refresh();
|
|
}
|
|
}
|
|
|
|
}); |