Skip to content

Commit

Permalink
JBPM-5924: Case management comments - disable action button for other…
Browse files Browse the repository at this point in the history
… user comments (#707)
  • Loading branch information
nmirasch authored and cristianonicolai committed Apr 27, 2017
1 parent 1796498 commit 4b95607
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -4,7 +4,7 @@
<div class="list-view-pf-actions kie-comments__pf-actions">
<span data-field="comment-addedat"></span>
<div class="dropdown pull-right dropdown-kebab-pf" data-field="actions-dropdown">
<button class="btn btn-link dropdown-toggle" type="button" id="dropdownKebabRight" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<button class="btn btn-link dropdown-toggle disabled" data-field="actions-button" type="button" id="dropdownKebabRight" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="fa fa-ellipsis-v"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownKebabRight" data-field="actions-items"></ul>
Expand Down
Expand Up @@ -24,6 +24,7 @@
import com.google.gwt.user.client.TakesValue;

import org.jboss.errai.common.client.api.IsElement;
import org.jboss.errai.common.client.dom.Button;
import org.jboss.errai.common.client.dom.Div;
import org.jboss.errai.common.client.dom.HTMLElement;
import org.jboss.errai.common.client.dom.Span;
Expand Down Expand Up @@ -83,6 +84,10 @@ public class CaseCommentItemView extends AbstractView<CaseCommentsPresenter> imp
@DataField("actions-dropdown")
Div actions;

@Inject
@DataField("actions-button")
Button actionsButton;

@Inject
@DataField("actions-items")
UnorderedList actionsItems;
Expand Down Expand Up @@ -141,7 +146,7 @@ public HTMLElement getElement() {
}

public void addAction(final CaseCommentsPresenter.CaseCommentAction action) {
removeCSSClass(actions, "hidden");
removeCSSClass(actionsButton, "disabled");

final HTMLElement a = getDocument().createElement("a");
a.setTextContent(action.label());
Expand Down

0 comments on commit 4b95607

Please sign in to comment.