mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-25 21:04:02 +02:00
Add new connection page to support multiple server connection configs
This commit is contained in:
@@ -47,11 +47,13 @@ export const getters = {
|
||||
}
|
||||
|
||||
export const actions = {
|
||||
// Listen for network connection
|
||||
async setupNetworkListener({ state, commit }) {
|
||||
if (state.isNetworkListenerInit) return
|
||||
commit('setNetworkListenerInit', true)
|
||||
|
||||
var status = await Network.getStatus()
|
||||
console.log('Network status', status)
|
||||
commit('setNetworkStatus', status)
|
||||
|
||||
Network.addListener('networkStatusChange', (status) => {
|
||||
|
||||
Reference in New Issue
Block a user