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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user