mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
move refresh ws to store.
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { actionTree, getterTree, mutationTree } from 'typed-vuex'
|
||||
import { FileListItem, FileTransfer } from '~/neko/types'
|
||||
import { EVENT } from '~/neko/events'
|
||||
import { accessor } from '~/store'
|
||||
|
||||
export const state = () => ({
|
||||
@ -65,7 +66,7 @@ export const actions = actionTree(
|
||||
if (!accessor.connected) {
|
||||
return
|
||||
}
|
||||
$client.refreshFiles()
|
||||
$client.sendMessage(EVENT.FILETRANSFER.REFRESH)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user