mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-02 18:14:47 +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,18 +28,16 @@ export default {
|
|||
return this.networkConnectionType === 'cellular'
|
||||
},
|
||||
icon() {
|
||||
if (!this.user) return null // hide when not connected to server
|
||||
|
||||
if (!this.networkConnected) {
|
||||
return 'wifi_off'
|
||||
} else if (!this.socketConnected) {
|
||||
return 'cloud_off'
|
||||
} else if (this.user) {
|
||||
if (this.isCellular) {
|
||||
return 'signal_cellular_alt'
|
||||
} else {
|
||||
return 'cloud_done'
|
||||
}
|
||||
} else if (this.isCellular) {
|
||||
return 'signal_cellular_alt'
|
||||
} else {
|
||||
return null
|
||||
return 'cloud_done'
|
||||
}
|
||||
},
|
||||
iconClass() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue