Fixes for db connection file type field (#11331)

- Fixed helper text for file type form fields
- Added padding bottom to form section
This commit is contained in:
Arnav Palnitkar 2021-04-09 13:00:39 -07:00 committed by GitHub
parent 49489da596
commit 0b81d4b9c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -72,12 +72,14 @@ export default Model.extend({
max_connection_lifetime: attr('string'),
tls: attr('string', {
label: 'TLS Certificate Key',
subText: 'x509 certificate for connecting to the database.',
helpText:
'x509 certificate for connecting to the database. This must be a PEM encoded version of the private key and the certificate combined.',
editType: 'file',
}),
tls_ca: attr('string', {
label: 'TLS CA',
subText: 'x509 CA file for validating the certificate presented by the MongoDB server.',
helpText:
'x509 CA file for validating the certificate presented by the MongoDB server. Must be PEM encoded.',
editType: 'file',
}),
root_rotation_statements: attr({

View File

@ -1,5 +1,5 @@
.form-section {
padding-top: 1.75rem;
padding: 1.75rem 0;
box-shadow: 0 -1px 0 0 rgba($black, 0.1);
}

View File

@ -111,7 +111,8 @@
{{!-- File Input --}}
{{text-file
index=""
helpText=attr.options.helpText
fileHelpText=attr.options.helpText
textareaHelpText=attr.options.helpText
file=file
onChange=(action "setFile")
warning=attr.options.warning