mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-02 04:56:06 +02:00
fix: datatable sorting issue
This commit is contained in:
+5
-5
@@ -27,10 +27,7 @@ export const useFeedStore = defineStore('Feed', () => {
|
||||
tableProps: {
|
||||
stripe: true,
|
||||
size: 'small',
|
||||
defaultSort: {
|
||||
prop: 'created_at',
|
||||
order: 'descending'
|
||||
},
|
||||
defaultSort: null,
|
||||
rowKey: (row) =>
|
||||
`${row.type}:${row.rowId ?? row.uid}:${row.created_at ?? ''}`
|
||||
},
|
||||
@@ -191,7 +188,10 @@ export const useFeedStore = defineStore('Feed', () => {
|
||||
if (!feedSearch(feed)) {
|
||||
return;
|
||||
}
|
||||
feedTable.value.data.push({ ...feed, uid: crypto.randomUUID() });
|
||||
feedTable.value.data.push({
|
||||
...feed,
|
||||
uid: crypto.randomUUID()
|
||||
});
|
||||
sweepFeed();
|
||||
UiStore.notifyMenu('feed');
|
||||
}
|
||||
|
||||
@@ -90,10 +90,7 @@ export const useFriendStore = defineStore('Friend', () => {
|
||||
tableProps: {
|
||||
stripe: true,
|
||||
size: 'small',
|
||||
defaultSort: {
|
||||
prop: 'created_at',
|
||||
order: 'descending'
|
||||
}
|
||||
defaultSort: null
|
||||
},
|
||||
pageSize: 20,
|
||||
pageSizeLinked: true,
|
||||
|
||||
@@ -66,10 +66,7 @@ export const useGameLogStore = defineStore('GameLog', () => {
|
||||
tableProps: {
|
||||
stripe: true,
|
||||
size: 'small',
|
||||
defaultSort: {
|
||||
prop: 'created_at',
|
||||
order: 'descending'
|
||||
},
|
||||
defaultSort: null,
|
||||
rowKey: (row) =>
|
||||
`${row.type}:${row.rowId ?? row.uid ?? row.displayName + row.location + row.time}:${row.created_at ?? ''}`
|
||||
},
|
||||
@@ -398,7 +395,10 @@ export const useGameLogStore = defineStore('GameLog', () => {
|
||||
if (!gameLogSearch(entry)) {
|
||||
return;
|
||||
}
|
||||
gameLogTable.value.data.push({ ...entry, uid: crypto.randomUUID() });
|
||||
gameLogTable.value.data.push({
|
||||
...entry,
|
||||
uid: crypto.randomUUID()
|
||||
});
|
||||
sweepGameLog();
|
||||
uiStore.notifyMenu('game-log');
|
||||
}
|
||||
|
||||
@@ -69,10 +69,7 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
tableProps: {
|
||||
stripe: true,
|
||||
size: 'small',
|
||||
defaultSort: {
|
||||
prop: 'created_at',
|
||||
order: 'descending'
|
||||
}
|
||||
defaultSort: null
|
||||
},
|
||||
pageSize: 20,
|
||||
pageSizeLinked: true,
|
||||
|
||||
Reference in New Issue
Block a user