mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-15 11:50:34 +01:00
feat: sort share files by name by default
This commit is contained in:
parent
601772d2f4
commit
27ee9fb6cb
@ -239,7 +239,11 @@ export class ShareService {
|
|||||||
const share = await this.prisma.share.findUnique({
|
const share = await this.prisma.share.findUnique({
|
||||||
where: { id },
|
where: { id },
|
||||||
include: {
|
include: {
|
||||||
files: true,
|
files: {
|
||||||
|
orderBy: {
|
||||||
|
name: "asc",
|
||||||
|
},
|
||||||
|
},
|
||||||
creator: true,
|
creator: true,
|
||||||
security: true,
|
security: true,
|
||||||
},
|
},
|
||||||
|
@ -39,7 +39,7 @@ const FileList = ({
|
|||||||
const t = useTranslate();
|
const t = useTranslate();
|
||||||
|
|
||||||
const [sort, setSort] = useState<TableSort>({
|
const [sort, setSort] = useState<TableSort>({
|
||||||
property: undefined,
|
property: "name",
|
||||||
direction: "desc",
|
direction: "desc",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user