From 4d2ef6427f99a713df21e0d475ed88656425a533 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Mon, 24 Oct 2022 10:46:09 +0200 Subject: hide signature data link if unavailable --- .../pdfover/gui/composites/mobilebku/MobileBKUEnterTANComposite.java | 2 +- .../at/asit/pdfover/gui/composites/mobilebku/MobileBKUQRComposite.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf-over-gui/src/main/java/at') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUEnterTANComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUEnterTANComposite.java index 5598f2d3..3f69965b 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUEnterTANComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUEnterTANComposite.java @@ -96,7 +96,7 @@ public class MobileBKUEnterTANComposite extends StateComposite { */ public void setSignatureDataURI(@Nullable URI uri) { this.signatureDataURI = uri; - this.lnk_sig_data.setEnabled(uri != null); + this.lnk_sig_data.setVisible(uri != null); } private String tan; diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUQRComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUQRComposite.java index e7603dbd..f17d0057 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUQRComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/mobilebku/MobileBKUQRComposite.java @@ -146,7 +146,7 @@ public class MobileBKUQRComposite extends StateComposite { public void setSignatureDataURI(@Nullable URI uri) { this.signatureDataURI = uri; - this.lnk_sig_data.setEnabled(uri != null); + this.lnk_sig_data.setVisible(uri != null); } /** -- cgit v1.2.3