mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-29 06:37:16 +02:00
Fix network connection indicator
This commit is contained in:
@@ -28,18 +28,16 @@ export default {
|
|||||||
return this.networkConnectionType === 'cellular'
|
return this.networkConnectionType === 'cellular'
|
||||||
},
|
},
|
||||||
icon() {
|
icon() {
|
||||||
|
if (!this.user) return null // hide when not connected to server
|
||||||
|
|
||||||
if (!this.networkConnected) {
|
if (!this.networkConnected) {
|
||||||
return 'wifi_off'
|
return 'wifi_off'
|
||||||
} else if (!this.socketConnected) {
|
} else if (!this.socketConnected) {
|
||||||
return 'cloud_off'
|
return 'cloud_off'
|
||||||
} else if (this.user) {
|
} else if (this.isCellular) {
|
||||||
if (this.isCellular) {
|
return 'signal_cellular_alt'
|
||||||
return 'signal_cellular_alt'
|
|
||||||
} else {
|
|
||||||
return 'cloud_done'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
return null
|
return 'cloud_done'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
iconClass() {
|
iconClass() {
|
||||||
|
|||||||
Reference in New Issue
Block a user