Skip to content

Commit

Permalink
Add a red border around the action on failure apache#3701
Browse files Browse the repository at this point in the history
  • Loading branch information
nadment committed Mar 6, 2024
1 parent bc88aa5 commit 52fd36b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,13 @@ protected void drawAction(ActionMeta actionMeta) throws HopException {
areaOwners.add(
new AreaOwner(AreaType.ACTION_ICON, x, y, iconSize, iconSize, offset, subject, actionMeta));

if (actionMeta.isMissing()) {
boolean actionError = false;
ActionResult actionResult = findActionResult(actionMeta);
if ( actionResult!=null && !actionResult.isCheckpoint() ) {
actionError = !actionResult.getResult().getResult();
}

if (actionError || actionMeta.isMissing()) {
gc.setForeground(EColor.RED);
} else if (actionMeta.isDeprecated()) {
gc.setForeground(EColor.DEPRECATED);
Expand Down Expand Up @@ -350,7 +356,6 @@ protected void drawAction(ActionMeta actionMeta) throws HopException {
actionMeta));
}

ActionResult actionResult = findActionResult(actionMeta);
if (actionResult != null) {
Result result = actionResult.getResult();
int iconX = (x + iconSize) - (miniIconSize / 2) + 1;
Expand Down

0 comments on commit 52fd36b

Please sign in to comment.