2022-03-31 13:06:21 +03:00
|
|
|
import Controller from '@ember/controller';
|
|
|
|
import {inject as service} from '@ember/service';
|
|
|
|
import {task} from 'ember-concurrency';
|
|
|
|
import {tracked} from '@glimmer/tracking';
|
|
|
|
|
2022-05-05 14:36:16 +03:00
|
|
|
export default class NewslettersController extends Controller {
|
2022-03-31 13:06:21 +03:00
|
|
|
@service settings;
|
|
|
|
|
2022-04-13 21:34:48 +03:00
|
|
|
queryParams = ['verifyEmail'];
|
2022-03-31 13:06:21 +03:00
|
|
|
|
2022-04-13 21:34:48 +03:00
|
|
|
@tracked verifyEmail = null;
|
2022-03-31 13:06:21 +03:00
|
|
|
|
|
|
|
@task({drop: true})
|
|
|
|
*saveSettings() {
|
|
|
|
const response = yield this.settings.save();
|
|
|
|
return response;
|
|
|
|
}
|
|
|
|
}
|