outl1ne/nova-simple-repeatable

* Missing on required fileds

TNDJX opened this issue · 2 comments

TNDJX commented

When setting fields as required * is missing from the field label.

Example:

image

image

Field Text should have red * to indicate that field is required

TNDJX commented

I have also played around and only thing needed is that in FormField.vue we added something like this

<div
  v-for="(rowField, i) in fields"
  :key="i"
  class="nsr-font-bold nsr-text-90 nsr-text-md nsr-w-full nsr-ml-3 nsr-flex nsr-space-x-1"
  >
  <span>
    {{ rowField.name }}
  </span>
  <span v-if="rowField.required" class="nsr-text-red-500 nsr-text-sm">
    {{ __('*') }}
  </span>

I would open a PR but Its not letting me push to the branch I created

Hi and thank you!

This will be available in the next release.