Skip to content

Commit

Permalink
Allow save and cancel buttons even when canEdit = false
Browse files Browse the repository at this point in the history
  • Loading branch information
sprevilla committed Jan 29, 2020
1 parent 14bb056 commit c5d897e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/qi-core/src/main/java/org/jpos/qi/QIEntityView.java
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,12 @@ public void setReadOnly (boolean readOnly) {

if (canEdit()) {
footer.addComponent(editBtn);
footer.addComponent(saveBtn);
footer.addComponent(cancelBtn);
footer.setComponentAlignment(editBtn, Alignment.MIDDLE_RIGHT);
footer.setComponentAlignment(saveBtn, Alignment.MIDDLE_RIGHT);
footer.setComponentAlignment(cancelBtn, Alignment.MIDDLE_RIGHT);
}
footer.addComponent(saveBtn);
footer.addComponent(cancelBtn);
footer.setComponentAlignment(saveBtn, Alignment.MIDDLE_RIGHT);
footer.setComponentAlignment(cancelBtn, Alignment.MIDDLE_RIGHT);
if (canRemove()) {
footer.addComponent(removeBtn);
footer.setComponentAlignment(removeBtn, Alignment.MIDDLE_RIGHT);
Expand Down

0 comments on commit c5d897e

Please sign in to comment.