diff --git a/components/app/Appbar.vue b/components/app/Appbar.vue index 04bcfd52..fee86c0b 100644 --- a/components/app/Appbar.vue +++ b/components/app/Appbar.vue @@ -7,7 +7,7 @@ -
{{ currentLibraryName }}
@@ -54,14 +54,17 @@ export default { this.$store.commit('setCastAvailable', val) } }, + networkConnected() { + return this.$store.state.networkConnected + }, currentLibrary() { return this.$store.getters['libraries/getCurrentLibrary'] }, currentLibraryName() { - return this.currentLibrary ? this.currentLibrary.name : '' + return this.currentLibrary?.name || '' }, currentLibraryIcon() { - return this.currentLibrary ? this.currentLibrary.icon : 'database' + return this.currentLibrary?.icon || 'database' }, showBack() { if (!this.$route.name) return true @@ -71,7 +74,7 @@ export default { return this.$store.state.user.user }, username() { - return this.user ? this.user.username : 'err' + return this.user?.username || 'err' }, isCasting() { return this.$store.state.isCasting