feat: List accounts within a managed group
This commit is contained in:
11 files changed
+207
-6
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
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