mirror of
https://github.com/frappe/books.git
synced 2024-11-14 09:24:04 +00:00
fix: list ordering
- error message overlap spacing
This commit is contained in:
parent
e801878a92
commit
a4500ec231
@ -49,7 +49,9 @@
|
|||||||
class="grid items-center"
|
class="grid items-center"
|
||||||
:class="{
|
:class="{
|
||||||
'border-b': !noBorder,
|
'border-b': !noBorder,
|
||||||
'h-12': !['AttachImage', 'Text'].includes(df.fieldtype),
|
'h-12':
|
||||||
|
!['AttachImage', 'Text'].includes(df.fieldtype) &&
|
||||||
|
!errors[df.fieldname],
|
||||||
}"
|
}"
|
||||||
:key="`${df.fieldname}-regular`"
|
:key="`${df.fieldname}-regular`"
|
||||||
:style="style"
|
:style="style"
|
||||||
|
@ -174,10 +174,14 @@ export default defineComponent({
|
|||||||
filters = { ...this.filters };
|
filters = { ...this.filters };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const orderBy = !!fyo.getField(this.schemaName, 'date')
|
||||||
|
? 'date'
|
||||||
|
: 'created';
|
||||||
|
|
||||||
this.data = await fyo.db.getAll(this.schemaName, {
|
this.data = await fyo.db.getAll(this.schemaName, {
|
||||||
fields: ['*'],
|
fields: ['*'],
|
||||||
filters,
|
filters,
|
||||||
orderBy: 'modified',
|
orderBy,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user