mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 22:04:08 +02:00
add getter method for 'enableAltView'
This commit is contained in:
@@ -47,6 +47,10 @@ export const getters = {
|
|||||||
getJumpBackwardsTime: state => {
|
getJumpBackwardsTime: state => {
|
||||||
if (!state.deviceData || !state.deviceData.deviceSettings) return 10
|
if (!state.deviceData || !state.deviceData.deviceSettings) return 10
|
||||||
return state.deviceData.deviceSettings.jumpBackwardsTime || 10
|
return state.deviceData.deviceSettings.jumpBackwardsTime || 10
|
||||||
|
},
|
||||||
|
getAltViewEnabled: state => {
|
||||||
|
if (!state.deviceData || !state.deviceData.deviceSettings) return false
|
||||||
|
return state.deviceData.deviceSettings.enableAltView
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user