mirror of
https://github.com/frappe/books.git
synced 2025-01-25 16:18:33 +00:00
fix(ui): error message in table row
This commit is contained in:
parent
3717b7d23b
commit
12654539c3
@ -6,11 +6,12 @@
|
|||||||
px-2
|
px-2
|
||||||
border-b
|
border-b
|
||||||
hover:bg-gray-50
|
hover:bg-gray-50
|
||||||
h-row-mid
|
|
||||||
group
|
group
|
||||||
flex
|
flex
|
||||||
items-center
|
items-center
|
||||||
justify-center
|
justify-center
|
||||||
|
h-row-mid
|
||||||
|
relative
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<!-- Index or Remove button -->
|
<!-- Index or Remove button -->
|
||||||
@ -52,8 +53,9 @@
|
|||||||
|
|
||||||
<!-- Error Display -->
|
<!-- Error Display -->
|
||||||
<div
|
<div
|
||||||
class="text-sm text-red-600 mb-2 pl-2 col-span-full"
|
class="text-xs text-red-600 pl-2 col-span-full absolute"
|
||||||
v-if="Object.values(errors).filter(Boolean).length"
|
style="bottom: 0px"
|
||||||
|
v-if="hasErrors"
|
||||||
>
|
>
|
||||||
{{ getErrorString() }}
|
{{ getErrorString() }}
|
||||||
</div>
|
</div>
|
||||||
@ -97,6 +99,11 @@ export default {
|
|||||||
doc: this.row,
|
doc: this.row,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
hasErrors() {
|
||||||
|
return Object.values(this.errors).filter(Boolean).length;
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onChange(df, value) {
|
onChange(df, value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user