Remove accounts route in favour of members
This commit is contained in:
1 parent
23c461fd3e
commit
9e005a73bb
4 files changed
-105
No files matched your search
-26
@@ -1,26 +0,0 @@
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
||||
export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsManagedGroupAccountsRoute extends Route {
|
||||
// =services
|
||||
|
||||
@service resourceFilterStore;
|
||||
|
||||
// =methods
|
||||
|
||||
/**
|
||||
* Returns the previously loaded managed group instances accounts.
|
||||
* @return {Promise{[AccountModel]}}
|
||||
*/
|
||||
model() {
|
||||
const { auth_method_id, member_ids } = this.modelFor(
|
||||
'scopes.scope.auth-methods.auth-method.managed-groups.managed-group'
|
||||
);
|
||||
|
||||
return this.resourceFilterStore.queryBy(
|
||||
'account',
|
||||
{ id: member_ids },
|
||||
{ auth_method_id }
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user