[web] Fix camel case for some elements

This commit is contained in:
Alain Nussbaumer
2025-05-02 21:22:29 +02:00
parent ad143e88c2
commit 895f8376fd
9 changed files with 60 additions and 64 deletions

View File

@@ -31,7 +31,7 @@ export default {
},
data() {
return {
old_volume: 0
volume: 0
}
},
computed: {
@@ -42,7 +42,7 @@ export default {
watch: {
'player.volume'() {
if (this.player.volume > 0) {
this.old_volume = this.player.volume
this.volume = this.player.volume
}
}
},
@@ -51,7 +51,7 @@ export default {
webapi.player_volume(this.player.volume)
},
toggle() {
this.player.volume = this.player.volume > 0 ? 0 : this.old_volume
this.player.volume = this.player.volume > 0 ? 0 : this.volume
this.changeVolume()
}
}

View File

@@ -46,7 +46,7 @@ export default {
return this.timerId >= 0
},
setting() {
return this.settingsStore.setting(this.category, this.name)
return this.settingsStore.get(this.category, this.name)
}
},
methods: {

View File

@@ -52,7 +52,7 @@ export default {
},
methods: {
image(item) {
if (this.settingsStore.show_cover_artwork_in_album_lists) {
if (this.settingsStore.showCoverArtworkInAlbumLists) {
return { url: item.item.artwork_url, caption: item.item.name }
}
return null

View File

@@ -43,7 +43,7 @@ export default {
},
methods: {
image(item) {
if (this.settingsStore.show_cover_artwork_in_album_lists) {
if (this.settingsStore.showCoverArtworkInAlbumLists) {
return { url: item.images?.[0]?.url ?? '', caption: item.name }
}
return null

View File

@@ -81,13 +81,13 @@ export default {
icon: 'music-box-multiple',
key: 'navigation.playlists',
name: 'playlists',
show: this.settingsStore.show_menu_item_playlists
show: this.settingsStore.showMenuItemPlaylists
},
{
icon: 'music',
key: 'navigation.music',
name: 'music',
show: this.settingsStore.show_menu_item_music
show: this.settingsStore.showMenuItemMusic
},
{
key: 'navigation.artists',
@@ -123,31 +123,31 @@ export default {
icon: 'microphone',
key: 'navigation.podcasts',
name: 'podcasts',
show: this.settingsStore.show_menu_item_podcasts
show: this.settingsStore.showMenuItemPodcasts
},
{
icon: 'book-open-variant',
key: 'navigation.audiobooks',
name: 'audiobooks',
show: this.settingsStore.show_menu_item_audiobooks
show: this.settingsStore.showMenuItemAudiobooks
},
{
icon: 'radio',
key: 'navigation.radio',
name: 'radio',
show: this.settingsStore.show_menu_item_radio
show: this.settingsStore.showMenuItemRadio
},
{
icon: 'folder-open',
key: 'navigation.files',
name: 'files',
show: this.settingsStore.show_menu_item_files
show: this.settingsStore.showMenuItemFiles
},
{
icon: 'magnify',
key: 'navigation.search',
name: this.searchStore.source,
show: this.settingsStore.show_menu_item_search
show: this.settingsStore.showMenuItemSearch
},
{ separator: true, show: true },
{