Fix network connection indicator

This commit is contained in:
advplyr 2022-07-13 17:13:15 -05:00
parent 721f812df0
commit 9847ed9fcb

View file

@ -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'