feat: add sortings
This commit is contained in:
@@ -232,7 +232,7 @@ export async function importChat(){
|
||||
return
|
||||
}
|
||||
|
||||
db.characters[selectedID].chats.push(newChat)
|
||||
db.characters[selectedID].chats.unshift(newChat)
|
||||
setDatabase(db)
|
||||
alertNormal(language.successImport)
|
||||
}
|
||||
@@ -241,7 +241,7 @@ export async function importChat(){
|
||||
if(json.type === 'risuChat' && json.ver === 1){
|
||||
const das:Chat = json.data
|
||||
if(!(checkNullish(das.message) || checkNullish(das.note) || checkNullish(das.name) || checkNullish(das.localLore))){
|
||||
db.characters[selectedID].chats.push(das)
|
||||
db.characters[selectedID].chats.unshift(das)
|
||||
setDatabase(db)
|
||||
alertNormal(language.successImport)
|
||||
return
|
||||
|
||||
@@ -987,4 +987,9 @@ export function parseKeyValue(template:string){
|
||||
}
|
||||
|
||||
return keyValue
|
||||
}
|
||||
}
|
||||
|
||||
export const sortableOptions = {
|
||||
delay: 300, // time in milliseconds to define when the sorting should start
|
||||
delayOnTouchOnly: true
|
||||
} as const
|
||||
Reference in New Issue
Block a user