Ghost/ghost/admin/app/controllers/settings/members-email-labs.js
Kevin Ansfield 179d58aa08 Cleaned up call of a removed function - fixes tests (#2335)
refs e398557a75

- `resetEmailAddresses()` was called when saving the labs version of members-email settings screen but the function no longer exists, this was throwing an error which broke all following tests in CI
2022-04-14 11:01:09 +01:00

19 lines
473 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 MembersEmailLabsController extends Controller {
@service settings;
queryParams = ['verifyEmail'];
@tracked verifyEmail = null;
@task({drop: true})
*saveSettings() {
const response = yield this.settings.save();
return response;
}
}