Add command args

This commit is contained in:
Anton Vakhrushev 2020-03-29 17:25:39 +03:00
parent 3599232f6a
commit 233b33cbd4

View File

@ -16,12 +16,19 @@ export default class TaskQueueRenderer {
padding: '8px 6px',
});
if (state.current) {
let cmd = state.current.cmd;
ul.append(
jQuery('<li></li>').text('Current: ' + state.current.cmd.name)
jQuery('<li></li>').text(
'Current: ' + cmd.name + ' ' + JSON.stringify(cmd.args)
)
);
}
state.items.forEach(c => {
ul.append(jQuery('<li></li>').text(c.cmd.name));
ul.append(
jQuery('<li></li>').text(
c.cmd.name + ' ' + JSON.stringify(c.cmd.args)
)
);
});
const el = jQuery(`#${ID}`);