Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Tasks: Pass a specific className in the Task internals
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 30, 2016
1 parent 697cc7e commit d333730
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/src/plugins/core.tasks/js/react/PydioTasks.js
Expand Up @@ -46,6 +46,10 @@
return this._internal['statusMessage'];
}

getClassName(){
return this._internal['className'];
}

getData(){
return this._internal;
}
Expand Down Expand Up @@ -293,11 +297,12 @@
}
let click, clickStyle;
if(this.props.task.hasOpenablePane()){
click = this.props.task.openDetailPane.bind(this);
click = this.props.task.openDetailPane;
clickStyle = {cursor:'pointer'};
}
let customClassName = this.props.task.getClassName() || '';
return (
<div className={"task " + "task-status-" + this.props.task.getStatus()}>
<div className={"task " + "task-status-" + this.props.task.getStatus() + " " + customClassName}>
<div className="task_texts" onClick={click} style={clickStyle}>
<div className="task_label">{scopeInfo}{t.getLabel()}</div>
<div className="status_message" title={t.getStatusMessage()}>{t.getStatusMessage()}</div>
Expand Down

0 comments on commit d333730

Please sign in to comment.