19 lines
458 B
JavaScript
19 lines
458 B
JavaScript
import { ajax } from 'discourse/lib/ajax';
|
|
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
|
|
|
export default Ember.Controller.extend(ModalFunctionality, {
|
|
emailSent: false,
|
|
|
|
onShow() {
|
|
this.set("emailSent", false);
|
|
},
|
|
|
|
actions: {
|
|
sendActivationEmail: function() {
|
|
ajax('/users/action/send_activation_email', {data: {username: this.get('username')}, type: 'POST'});
|
|
this.set('emailSent', true);
|
|
}
|
|
}
|
|
|
|
});
|