12345678910111213141516171819202122232425262728293031 |
- import MisagoRoute from 'misago/routes/misago';
- export default MisagoRoute.extend({
- formTitle: gettext('Request activation link'),
- formTemplate: 'activation.request-link',
- sentTitle: gettext('Activation link sent'),
- sentTemplate: 'activation.link-sent',
- renderTemplate: function() {
- this.render(this.get('formTemplate'));
- },
- actions: {
- didTransition: function() {
- this.set('title', this.get('formTitle'));
- },
- showSentPage: function(linkRecipient) {
- this.set('title', this.get('sentTitle'));
- this.render(this.get('sentTemplate'), {
- model: linkRecipient
- });
- },
- retry: function() {
- this.send('didTransition');
- this.renderTemplate();
- }
- }
- });
|