Files
threshold-ui/ui/admin/app/routes/scopes/scope/auth-methods/auth-method.js
T

39 lines
1.0 KiB
JavaScript
Raw Normal View History

2020-08-12 17:16:41 -04:00
import Route from '@ember/routing/route';
export default class ScopesScopeAuthMethodsAuthMethodRoute extends Route {
// =methods
/**
2020-09-16 09:48:07 -04:00
* Load an auth method by ID.
2020-08-12 17:16:41 -04:00
* @param {object} params
* @param {string} params.auth_method_id
* @return {authMethodModel}
*/
2020-09-09 12:24:01 -04:00
async model({ auth_method_id }) {
return this.store.findRecord('auth-method', auth_method_id);
2020-08-12 17:16:41 -04:00
}
2020-09-14 15:58:06 -04:00
/**
* Renders the auth-method specific templates for header, navigation,
* and actions page sections.
* @override
*/
renderTemplate() {
super.renderTemplate(...arguments);
this.render('scopes/scope/auth-methods/auth-method/-header', {
into: 'scopes/scope/auth-methods/auth-method',
outlet: 'header',
});
this.render('scopes/scope/auth-methods/auth-method/-navigation', {
into: 'scopes/scope/auth-methods/auth-method',
outlet: 'navigation',
});
this.render('scopes/scope/auth-methods/auth-method/-actions', {
into: 'scopes/scope/auth-methods/auth-method',
outlet: 'actions',
});
}
2020-08-12 17:16:41 -04:00
}