Ghost/ghost/admin/app/controllers/settings/analytics.js
Rishabh 9503ca1c7b Wired new analytics settings for tracking email and sources
refs https://github.com/TryGhost/Team/issues/2168

- wires new source tracking setting for members to UI
- splits the new analytics page settings to its own component, cleaned up the files and wired up the settings upstream
2022-10-27 17:29:33 +05:30

14 lines
353 B
JavaScript

import Controller from '@ember/controller';
import {inject as service} from '@ember/service';
import {task} from 'ember-concurrency';
export default class AnalyticsController extends Controller {
@service settings;
@task({drop: true})
*saveSettings() {
const response = yield this.settings.save();
return response;
}
}