From c5d897efe126495d26055995a330960aa080b47b Mon Sep 17 00:00:00 2001 From: Santiago Revilla Date: Wed, 29 Jan 2020 11:44:06 -0300 Subject: [PATCH] Allow save and cancel buttons even when canEdit = false --- .../qi-core/src/main/java/org/jpos/qi/QIEntityView.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/qi-core/src/main/java/org/jpos/qi/QIEntityView.java b/modules/qi-core/src/main/java/org/jpos/qi/QIEntityView.java index a3ef1cfc44..e492cdc0c6 100644 --- a/modules/qi-core/src/main/java/org/jpos/qi/QIEntityView.java +++ b/modules/qi-core/src/main/java/org/jpos/qi/QIEntityView.java @@ -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);