generalize secret textarea hint

This commit is contained in:
Jake McDermott 2019-03-22 09:36:06 -04:00
parent cb238c1f24
commit 956f588fd8
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7
4 changed files with 7 additions and 5 deletions

View File

@ -26,18 +26,19 @@ aim_inputs = {
'type': 'string',
'secret': True,
'multiline': True,
'format': 'ssh_private_key',
}, {
'id': 'client_cert',
'label': _('Client Cert'),
'label': _('Client Certificate'),
'type': 'string',
'secret': True,
'multiline': True,
'format': 'ssh_private_key',
}, {
'id': 'verify',
'type': 'boolean',
'default': True,
'label': _('Verify'),
'help_text': _('Verify SSL certificates for HTTPS requests'),
'label': _('Verify SSL Certificates'),
}],
'metadata': [{
'id': 'safe',

View File

@ -40,7 +40,7 @@ function ComponentsStrings (BaseString) {
};
ns.textarea = {
SSH_KEY_HINT: t.s('HINT: Drag and drop an SSH private key file on the field below.')
SSH_KEY_HINT: t.s('HINT: Drag and drop private file on the field below.')
};
ns.lookup = {

View File

@ -99,6 +99,7 @@ function AtInputGroupController ($scope, $compile) {
if (input.secret) {
config._component = 'at-input-textarea-secret';
input.format = 'ssh_private_key';
} else {
config._component = 'at-input-textarea';
}

View File

@ -1,7 +1,7 @@
<div class="col-sm-{{::col}} at-InputContainer">
<div class="form-group at-u-flat">
<at-input-label></at-input-label>
<div ng-class="{ 'input-group': state.tagMode }">
<div class="input-group">
<div class="input-group-btn at-InputGroup-button input-group-prepend" ng-show="state.tagMode">
<button
class="btn at-ButtonHollow--white at-Input-button--long-sm"