From 2819c0edf113dbdfeb7fcd636c4a35ba9a0d62e0 Mon Sep 17 00:00:00 2001 From: badetitou Date: Wed, 10 Jul 2019 18:27:32 +0200 Subject: [PATCH] now we have a real group of music that will be played --- src/EMM-WebApplication/EMMListModule.class.st | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EMM-WebApplication/EMMListModule.class.st b/src/EMM-WebApplication/EMMListModule.class.st index c0ee2eb..cde69fa 100644 --- a/src/EMM-WebApplication/EMMListModule.class.st +++ b/src/EMM-WebApplication/EMMListModule.class.st @@ -40,8 +40,8 @@ EMMListModule >> renderContentOn: html [ with: 'Author'. html mdlTableHeading with: 'Length' ] ]. html - tableBody: [ datas - do: [ :song | + tableBody: [ datas doWithIndex: + [ :song :index | html tableRow: [ html mdlTableCell with: song track. html mdlTableCell @@ -60,7 +60,7 @@ EMMListModule >> renderContentOn: html [ icon; with: [ html mdlIcon: 'stop' ] ] ifFalse: [ html mdlAnchorButton - callback: [ self session musicPlayer musicList: { song } asOrderedCollection ]; + callback: [ self session musicPlayer musicList: (datas copyFrom: index to: datas size ) ]; colored; icon; with: [ html mdlIcon: 'play_arrow' ] ] ] ] ] ] ]