mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
20 lines
514 B
JavaScript
20 lines
514 B
JavaScript
import Ember from 'ember';
|
|
|
|
import ModalView from 'flarum/mixins/modal-view';
|
|
|
|
export default Ember.View.extend(ModalView, {
|
|
classNames: ['modal-dialog', 'modal-sm', 'modal-signup'],
|
|
templateName: 'signup',
|
|
|
|
didInsertElement: function() {
|
|
},
|
|
|
|
welcomeUserDidChange: Ember.observer('controller.welcomeUser', function() {
|
|
if (this.get('controller.welcomeUser')) {
|
|
Ember.run.scheduleOnce('afterRender', this, function() {
|
|
this.$('.signup-welcome').hide().fadeIn();
|
|
});
|
|
}
|
|
})
|
|
});
|