[web] Optionally Show FilePath on Now playing-Page

This commit is contained in:
lordmyschkin
2023-02-05 12:49:16 +01:00
committed by ejurgensen
parent c645d570ea
commit a4ae747b15
10 changed files with 86 additions and 40 deletions

View File

@@ -119,6 +119,18 @@ export default createStore({
return null
},
settings_option_show_filepath_now_playing: (state, getters) => {
if (getters.settings_webinterface) {
const option = getters.settings_webinterface.options.find(
(elem) => elem.name === 'show_filepath_now_playing'
)
if (option) {
return option.value
}
}
return false
},
settings_category: (state) => (categoryName) => {
return state.settings.categories.find(
(elem) => elem.name === categoryName