mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
UI/fix kvv2 version (#11258)
* Update default form values for kv * Group kv version option in 'Method Options' group * Fix tests, explicitly set if select input does not have default * Handle array of objects from adapterError.errors in MessageError component * Add changelog
This commit is contained in:
@@ -60,8 +60,17 @@ export default Model.extend({
|
||||
formFieldGroups: computed('engineType', function() {
|
||||
let type = this.engineType;
|
||||
let defaultGroup = { default: ['path'] };
|
||||
let optionsGroup = {
|
||||
'Method Options': [
|
||||
'description',
|
||||
'config.listingVisibility',
|
||||
'local',
|
||||
'sealWrap',
|
||||
'config.{defaultLeaseTtl,maxLeaseTtl,auditNonHmacRequestKeys,auditNonHmacResponseKeys,passthroughRequestHeaders}',
|
||||
],
|
||||
};
|
||||
if (type === 'kv' || type === 'generic') {
|
||||
defaultGroup.default.push('options.{version}');
|
||||
optionsGroup['Method Options'].unshift('options.{version}');
|
||||
}
|
||||
if (type === 'database') {
|
||||
// For the Database Secret Engine we want to highlight the defaultLeaseTtl and maxLeaseTtl, removing them from the options object
|
||||
@@ -79,18 +88,7 @@ export default Model.extend({
|
||||
},
|
||||
];
|
||||
}
|
||||
return [
|
||||
defaultGroup,
|
||||
{
|
||||
'Method Options': [
|
||||
'description',
|
||||
'config.listingVisibility',
|
||||
'local',
|
||||
'sealWrap',
|
||||
'config.{defaultLeaseTtl,maxLeaseTtl,auditNonHmacRequestKeys,auditNonHmacResponseKeys,passthroughRequestHeaders}',
|
||||
],
|
||||
},
|
||||
];
|
||||
return [defaultGroup, optionsGroup];
|
||||
}),
|
||||
|
||||
attrs: computed('formFields', function() {
|
||||
|
||||
Reference in New Issue
Block a user