Ghost/ghost/admin/app/controllers/members-dev/import.js
Kevin Ansfield 598a327d6e Duplicated members screens for development experiments
no issue

- members screens will be undergoing heavy development to change how underlying data loading works
- duplicated all related screens and components so that development can occur behind the `enableDeveloperExperiments` flag without breaking the existing screens
- added "Members (dev)" link to the duplicate screens in nav bar when `enableDeveloperExperiments` is on
2020-05-19 16:18:30 +01:00

20 lines
491 B
JavaScript

import Controller from '@ember/controller';
import {inject as controller} from '@ember/controller';
import {inject as service} from '@ember/service';
/* eslint-disable ghost/ember/alias-model-in-controller */
export default Controller.extend({
members: controller(),
router: service(),
actions: {
fetchNewMembers() {
this.members.fetchMembers.perform();
},
close() {
this.router.transitionTo('members-dev');
}
}
});