f38a50b6b2
* fetch auth methods when going to the auth route and pass them to the auth form component * add boolean editType for form-fields * look in the data hash in the serializer * remove renderInPlace for info-tooltips as it does something goofy with widths * add new fields for auth methods * fix console refresh command on routes that use lazyPaginatedQuery * add wrapped_token param that logs you in via the token backend and show other backends if your list contains supported ones * handle casing when looking up supported backends * change listingVisibility to match the new API * move wrapped_token up to the vault route level so it works from the app root
16 lines
385 B
JavaScript
16 lines
385 B
JavaScript
import Ember from 'ember';
|
|
|
|
const { Helper, inject } = Ember;
|
|
|
|
export default Helper.extend({
|
|
router: inject.service(),
|
|
|
|
compute([routeName, ...models], { replace = false }) {
|
|
return () => {
|
|
const router = this.get('router');
|
|
const method = replace ? router.replaceWith : router.transitionTo;
|
|
return method.call(router, routeName, ...models);
|
|
};
|
|
},
|
|
});
|