Skip to content

Home Information - Your home, your data, organized.

Python

Fix UX bug: secret attributes with no value now immediately editable.

Anthony Cassandra868026cd55e5
diff --git a/src/hi/apps/attribute/templates/attribute/components/value_types/attribute_value_secret.html b/src/hi/apps/attribute/templates/attribute/components/value_types/attribute_value_secret.html
index 85e260cc..b0dc4340 100644
--- a/src/hi/apps/attribute/templates/attribute/components/value_types/attribute_value_secret.html
+++ b/src/hi/apps/attribute/templates/attribute/components/value_types/attribute_value_secret.html
@@ -19,7 +19,7 @@ is a secret: that only appears on the new attribute form.
<div class="attr-v2-secret-field">
<div class="{{ DIVID.ATTR_V2_SECRET_INPUT_WRAPPER_CLASS }}">
<!-- Secret field as password input -->
- {% if attribute_form.show_secrets %}
+ {% if attribute_form.show_secrets or not attribute_form.value.value %}
<input type="text"
id="{{ attribute_form.value.id_for_label }}"
name="{{ attribute_form.value.html_name }}"