Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Enhancement: better boolean custom field display (#7001)

shamoon9d4e2d465245
diff --git a/src-ui/src/app/components/common/custom-field-display/custom-field-display.component.html b/src-ui/src/app/components/common/custom-field-display/custom-field-display.component.html
index 07347f8e0..812c283e2 100644
--- a/src-ui/src/app/components/common/custom-field-display/custom-field-display.component.html
+++ b/src-ui/src/app/components/common/custom-field-display/custom-field-display.component.html
@@ -24,6 +24,12 @@
}
</div>
}
+ @case (CustomFieldDataType.Boolean) {
+ <div class="d-flex flex-row align-items-center">
+ <span>{{field.name}}:</span>
+ <input type="checkbox" id="{{field.name}}" name="{{field.name}}" [checked]="value" value="" class="form-check-input ms-2 mt-0 pe-none">
+ </div>
+ }
@default {
<span [ngbTooltip]="nameTooltip">{{value}}</span>
}