Skip to content

Commit

Permalink
Update TaskEventsPanel.java
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-pavliv committed Jul 28, 2015
1 parent cec86db commit d24ae8a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public class TaskEventsPanel extends Panel {
protected String taskId;
protected List<org.activiti.engine.task.Event> taskEvents;
protected TextField commentInputField;
protected Button addCommentButton;
protected GridLayout eventGrid;

public TaskEventsPanel() {
Expand Down Expand Up @@ -128,6 +129,8 @@ protected void addTaskEvents() {
addTaskEventText(event, eventGrid);
}
}
addCommentButton.setEnabled(taskId != null);
commentInputField.setEnabled(taskId != null);
}

protected void addTaskEventPicture(final org.activiti.engine.task.Event taskEvent, GridLayout eventGrid) {
Expand Down Expand Up @@ -199,7 +202,7 @@ public Action[] getActions(Object target, Object sender) {
}
});

Button addCommentButton = new Button(i18nManager.getMessage(Messages.TASK_ADD_COMMENT));
addCommentButton = new Button(i18nManager.getMessage(Messages.TASK_ADD_COMMENT));
layout.addComponent(addCommentButton);
layout.setComponentAlignment(addCommentButton, Alignment.MIDDLE_LEFT);
addCommentButton.addListener(new ClickListener() {
Expand Down

0 comments on commit d24ae8a

Please sign in to comment.