| 69 | } |
| 70 | |
| 71 | constructor (options) { |
| 72 | super(options) |
| 73 | const prepaidCode = utils.getQueryVariable('_ppc') |
| 74 | this.personalSub = new PersonalSub(this.supermodel, prepaidCode) |
| 75 | this.recipientSubs = new RecipientSubs(this.supermodel) |
| 76 | this.emailValidator = new EmailValidator(this.superModel) |
| 77 | this.personalSub.update(() => (typeof this.render === 'function' ? this.render() : undefined)) |
| 78 | this.recipientSubs.update(() => (typeof this.render === 'function' ? this.render() : undefined)) |
| 79 | this.products = new Products() |
| 80 | this.supermodel.loadCollection(this.products) |
| 81 | } |
| 82 | |
| 83 | getMeta () { |
| 84 | return { title: $.i18n.t('account.subscription_title') } |