fix: added translation in SectionFields & Section Component
This commit is contained in:
parent
c1b67dec9c
commit
bebe929ec6
@ -10,7 +10,7 @@
|
|||||||
class="h-4 text-gray-900 transition-all duration-300 ease-in-out"
|
class="h-4 text-gray-900 transition-all duration-300 ease-in-out"
|
||||||
:class="{ 'rotate-90': opened }"
|
:class="{ 'rotate-90': opened }"
|
||||||
/>
|
/>
|
||||||
{{ label || 'Untitled' }}
|
{{ __(label) || __('Untitled') }}
|
||||||
</div>
|
</div>
|
||||||
<slot name="actions"></slot>
|
<slot name="actions"></slot>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
class="flex items-center gap-2 px-3 leading-5 first:mt-3"
|
class="flex items-center gap-2 px-3 leading-5 first:mt-3"
|
||||||
>
|
>
|
||||||
<div class="w-[106px] shrink-0 text-sm text-gray-600">
|
<div class="w-[106px] shrink-0 text-sm text-gray-600">
|
||||||
{{ field.label }}
|
{{ __(field.label) }}
|
||||||
<span class="text-red-500">{{ field.reqd ? ' *' : '' }}</span>
|
<span class="text-red-500">{{ field.reqd ? ' *' : '' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -17,7 +17,7 @@
|
|||||||
v-if="field.read_only && field.type !== 'checkbox'"
|
v-if="field.read_only && field.type !== 'checkbox'"
|
||||||
class="flex h-7 cursor-pointer items-center px-2 py-1 text-gray-600"
|
class="flex h-7 cursor-pointer items-center px-2 py-1 text-gray-600"
|
||||||
>
|
>
|
||||||
<Tooltip :text="field.tooltip">
|
<Tooltip :text="__(field.tooltip)">
|
||||||
<div>{{ data[field.name] }}</div>
|
<div>{{ data[field.name] }}</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user