diff options
author | brantje <brantje@gmail.com> | 2017-01-16 15:13:54 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2017-01-16 15:13:54 +0300 |
commit | 9920d8c97eb8a3f6281956aa00ebf39a8da91cfe (patch) | |
tree | ac55574ca7df2960522fbeae48b60d004c6f8b2e /templates | |
parent | 420c929d549c13a93a1257a7a3b5f2b96a892bdf (diff) |
Fix input fields not changes when field type changes
Diffstat (limited to 'templates')
-rw-r--r-- | templates/views/partials/forms/edit_credential/custom_fields.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/views/partials/forms/edit_credential/custom_fields.html b/templates/views/partials/forms/edit_credential/custom_fields.html index 45507ebf..8260fe32 100644 --- a/templates/views/partials/forms/edit_credential/custom_fields.html +++ b/templates/views/partials/forms/edit_credential/custom_fields.html @@ -12,10 +12,10 @@ </div> <div class="row"> <div class="col-xs-8 valueInput"> - <input type="text" ng-model="new_custom_field.value" ng-show="selected_field_type === 'text'"> - <password-gen ng-model="new_custom_field.value" ng-show="selected_field_type ==='password'" + <input type="text" ng-model="new_custom_field.value" ng-show="new_custom_field.field_type === 'text'"> + <password-gen ng-model="new_custom_field.value" ng-show="new_custom_field.field_type ==='password'" settings="{generateOnCreate: false }" ></password-gen> - <span ng-show="selected_field_type ==='file'"> + <span ng-show="new_custom_field.field_type ==='file'"> <input id="custom_field_file" class="inputfile" type="file" file-select success="addFileToCustomField" error="fileLoadError" progress="fileSelectProgress"> <label for="custom_field_file"><i class="fa fa-upload" aria-hidden="true"></i> {{ new_custom_field.value.filename || 'select.file' | translate}}</label> </span> |