Ghost/ghost/admin/app/controllers/settings/newsletters.js
Simon Backx 19249bdae5 Renamed members-email-labs to newsletters and removed unused files
no issue

We still had some old components and templates from the `members-email` settings that were only were used when the (now GA) `multipleNewsletters` flag was disabled. I’ve removed them and renamed all routes and components from `members-email` and `members-email-labs` to just `newsletters` because it was sometimes hard to understand if a given components was still used or not when fixing issues.
2022-05-05 13:37:53 +02:00

19 lines
468 B
JavaScript

import Controller from '@ember/controller';
import {inject as service} from '@ember/service';
import {task} from 'ember-concurrency';
import {tracked} from '@glimmer/tracking';
export default class NewslettersController extends Controller {
@service settings;
queryParams = ['verifyEmail'];
@tracked verifyEmail = null;
@task({drop: true})
*saveSettings() {
const response = yield this.settings.save();
return response;
}
}