fix: show red asterisk sign if field is reqd

This commit is contained in:
Shariq Ansari 2022-11-12 16:31:40 +05:30
parent 8710d64c86
commit ad59519f93

View file

@ -48,7 +48,7 @@ function move_fields_to_column() {
@mouseout.stop="hovered = false"
>
<div class="field-controls">
<div>
<div :class="{ 'reqd': field.df.reqd }">
<input
v-if="editing"
ref="label_input"
@ -133,6 +133,11 @@ function move_fields_to_column() {
justify-content: space-between;
align-items: center;
.reqd::after {
content: " *";
color: var(--red-400);
}
.label-input {
background-color: transparent;
border: none;