mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
20 lines
487 B
JavaScript
20 lines
487 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');
|
||
|
}
|
||
|
}
|
||
|
});
|