1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-10-26 03:17:40 +00:00

Feat: display queued items in bottom bar

This commit is contained in:
jcorporation
2018-11-11 22:22:48 +00:00
parent 9ca519c69a
commit add9d4daf0
2 changed files with 4 additions and 1 deletions

View File

@@ -82,6 +82,7 @@ domCache.currentCover = document.getElementById('currentCover');
domCache.currentTitle = document.getElementById('currentTitle');
domCache.btnVoteUp = document.getElementById('btnVoteUp');
domCache.btnVoteDown = document.getElementById('btnVoteDown');
domCache.badgeQueueItems = document.getElementById('badgeQueueItems');
var modalConnectionError = new Modal(document.getElementById('modalConnectionError'), { backdrop: 'static', keyboard: false});
var modalSettings = new Modal(document.getElementById('modalSettings'));
@@ -1393,6 +1394,8 @@ function parseState(obj) {
for (var i = 0; i < domCache.btnsPlayLen; i++)
domCache.btnsPlay[i].removeAttribute('disabled');
domCache.badgeQueueItems.innerText = obj.data.queueLength;
//Set volume
parseVolume(obj);