mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
9503ca1c7b
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
14 lines
353 B
JavaScript
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;
|
|
}
|
|
}
|