diff --git a/ui/app/models/sync/destination.js b/ui/app/models/sync/destination.js index f040e68c2f..086bd69e22 100644 --- a/ui/app/models/sync/destination.js +++ b/ui/app/models/sync/destination.js @@ -18,13 +18,17 @@ const validations = { @withModelValidations(validations) export default class SyncDestinationModel extends Model { - @attr('string', { subText: 'Specifies the name for this destination.', editDisabled: true }) name; + @attr('string', { subText: 'Specifies the name for this destination.', editDisabled: true }) + name; + @attr type; + @attr('string', { subText: - 'Go-template string that indicates how to format the secret name at the destination. The default template varies by destination type but is generally in the form of "vault--" e.g. "vault-kv-1234-my-secret-1".', + 'Go-template string that indicates how to format the secret name at the destination. The default template varies by destination type but is generally in the form of "vault-{{ .MountAccessor }}-{{ .SecretPath }}" e.g. "vault-kv_9a8f68ad-my-secret-1". Optional.', }) secretNameTemplate; + @attr('string', { editType: 'radio', label: 'Secret sync granularity', @@ -42,9 +46,8 @@ export default class SyncDestinationModel extends Model { value: 'secret-key', }, ], - defaultValue: 'secret-path', }) - granularity; + granularity; // default value depends on type and is set in create route // only present if delete action has been initiated @attr('string') purgeInitiatedAt; diff --git a/ui/lib/core/addon/components/form-field.hbs b/ui/lib/core/addon/components/form-field.hbs index 03cd70cb08..fb63d2e4ff 100644 --- a/ui/lib/core/addon/components/form-field.hbs +++ b/ui/lib/core/addon/components/form-field.hbs @@ -37,7 +37,7 @@