eab741eab8
* Update list items to be linkable to auth-methods show * Add general, namespace, and binding sub-routes * Remove namespace and binding tabs to be done separately * Update auth-method byId endpoint * Style the show auth-method kubernetes type * Finish Kubernetes auth-method type styling * OIDC and JWT auth-method styling * Create consul-auth-method-view component * Add navigation test for auth-methods * Create Certificate component
28 lines
693 B
JavaScript
28 lines
693 B
JavaScript
import { inject as service } from '@ember/service';
|
|
import SingleRoute from 'consul-ui/routing/single';
|
|
import { hash } from 'rsvp';
|
|
|
|
export default class ShowRoute extends SingleRoute {
|
|
@service('repository/auth-method') repo;
|
|
|
|
model(params) {
|
|
return super.model(...arguments).then(model => {
|
|
return hash({
|
|
...model,
|
|
...{
|
|
item: this.repo.findBySlug({
|
|
id: params.id,
|
|
dc: this.modelFor('dc').dc.Name,
|
|
ns: this.modelFor('nspace').nspace.substr(1),
|
|
}),
|
|
},
|
|
});
|
|
});
|
|
}
|
|
|
|
setupController(controller, model) {
|
|
super.setupController(...arguments);
|
|
controller.setProperties(model);
|
|
}
|
|
}
|