mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
57b1ab4800
no issue - part of ember upgrades - removed all unnecessary usage of `.get` - cleaned up imports where we had imports from the same module across multiple lines - standardized on importing specific computed helpers rather than using `computed.foo` - switched tests from using `wait()` to `settled()`
24 lines
704 B
JavaScript
24 lines
704 B
JavaScript
import Controller, {inject as controller} from '@ember/controller';
|
|
import {action} from '@ember/object';
|
|
import {resetQueryParams} from 'ghost-admin/helpers/reset-query-params';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class ImportController extends Controller {
|
|
@service router;
|
|
@controller members;
|
|
|
|
@action
|
|
refreshMembers({label} = {}) {
|
|
if (label) {
|
|
let queryParams = Object.assign(resetQueryParams('members.index'), {filter: `label:[${label.slug}]`});
|
|
this.router.transitionTo({queryParams});
|
|
}
|
|
this.members.refreshData();
|
|
}
|
|
|
|
@action
|
|
close() {
|
|
this.router.transitionTo('members');
|
|
}
|
|
}
|