mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add eslint no-nested-ternary rule and fix violations
This commit is contained in:
parent
ab5fad6d5b
commit
d895a4fc6a
15 changed files with 89 additions and 30 deletions
|
@ -520,7 +520,14 @@ import toast from './toast/toast';
|
|||
}
|
||||
|
||||
function play(item, resume, queue, queueNext) {
|
||||
const method = queue ? (queueNext ? 'queueNext' : 'queue') : 'play';
|
||||
let method = 'play';
|
||||
if (queue) {
|
||||
if (queueNext) {
|
||||
method = 'queueNext';
|
||||
} else {
|
||||
method = 'queue';
|
||||
}
|
||||
}
|
||||
|
||||
let startPosition = 0;
|
||||
if (resume && item.UserData && item.UserData.PlaybackPositionTicks) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue