4a9669a1bc
* Add type param to secret show, handle CG in database role show * If roleType is passed to credential, only make one creds API call * Clean up db role adapter and serializer * url param roleType passed to credentials call * Role list capabilities check for static and dynamic separately * Add changelog * Consistent adapter response for single or double call * Prioritize dynamic response if control group on role/creds
14 lines
305 B
JavaScript
14 lines
305 B
JavaScript
import { helper } from '@ember/component/helper';
|
|
|
|
export function secretQueryParams([backendType, type = '']) {
|
|
if (backendType === 'transit') {
|
|
return { tab: 'actions' };
|
|
}
|
|
if (backendType === 'database') {
|
|
return { type: type };
|
|
}
|
|
return;
|
|
}
|
|
|
|
export default helper(secretQueryParams);
|