2
0
mirror of https://github.com/frappe/books.git synced 2025-01-10 18:24:40 +00:00

fix(ui): error message in table row

This commit is contained in:
18alantom 2022-07-18 13:46:23 +05:30
parent 3717b7d23b
commit 12654539c3

View File

@ -6,11 +6,12 @@
px-2
border-b
hover:bg-gray-50
h-row-mid
group
flex
items-center
justify-center
h-row-mid
relative
"
>
<!-- Index or Remove button -->
@ -52,8 +53,9 @@
<!-- Error Display -->
<div
class="text-sm text-red-600 mb-2 pl-2 col-span-full"
v-if="Object.values(errors).filter(Boolean).length"
class="text-xs text-red-600 pl-2 col-span-full absolute"
style="bottom: 0px"
v-if="hasErrors"
>
{{ getErrorString() }}
</div>
@ -97,6 +99,11 @@ export default {
doc: this.row,
};
},
computed: {
hasErrors() {
return Object.values(this.errors).filter(Boolean).length;
},
},
methods: {
onChange(df, value) {
if (value == null) {