mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-07 20:44:46 +02:00
Fix network connection indicator
This commit is contained in:
parent
721f812df0
commit
9847ed9fcb
1 changed files with 5 additions and 7 deletions
|
@ -28,19 +28,17 @@ 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 {
|
} else {
|
||||||
return 'cloud_done'
|
return 'cloud_done'
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
iconClass() {
|
iconClass() {
|
||||||
if (!this.networkConnected) return 'text-error'
|
if (!this.networkConnected) return 'text-error'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue