From b89147ecd38b0f95a2e4917aba7f44bf3bb70327 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 7 Jul 2017 18:43:24 +0200 Subject: refactor audioplayer --- client/components/Tasks/Tasks.jsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'client/components/Tasks/Tasks.jsx') diff --git a/client/components/Tasks/Tasks.jsx b/client/components/Tasks/Tasks.jsx index a107acf..263e669 100644 --- a/client/components/Tasks/Tasks.jsx +++ b/client/components/Tasks/Tasks.jsx @@ -10,14 +10,20 @@ export default class Tasks extends Component { super() this.state = { adding: false, + tasks: [], } client.task.index().then( tasks => this.setState({ tasks }) ) } render() { - const tasks = (this.props.tasks || []).map( (task, i) => { +// {task.result_file.name} + const tasks = (this.state.tasks || []).map( (task, i) => { return (
this.toggle(task)}> - {task.name} + {task.id} + {task.created_at} + {task.content_file.name} + {task.style_file.name} + {task.alpha}
) }) @@ -25,9 +31,14 @@ export default class Tasks extends Component {
- tasks + create task
+
+
+
+ recent tasks +
{tasks}
-- cgit v1.2.3-70-g09d2