Commit 2c811691 authored by Bart Mathijssen's avatar Bart Mathijssen Committed by Evan W. Patton

Add direct link to download in Barcode link dialog

parent 7aaa9d52
...@@ -78,6 +78,7 @@ public class ShowBarcodeCommand extends ChainableCommand { ...@@ -78,6 +78,7 @@ public class ShowBarcodeCommand extends ChainableCommand {
Button okButton = new Button(MESSAGES.okButton()); Button okButton = new Button(MESSAGES.okButton());
okButton.addClickHandler(buttonHandler); okButton.addClickHandler(buttonHandler);
HTML barcodeQrcode = new HTML("<center>" + BlocklyPanel.getQRCode(appInstallUrl) + "</center>"); HTML barcodeQrcode = new HTML("<center>" + BlocklyPanel.getQRCode(appInstallUrl) + "</center>");
HTML linkQrcode = new HTML("<center><a href=\"" + appInstallUrl + "\" target=\"_blank\">" + appInstallUrl + "</a></center>");
HorizontalPanel buttonPanel = new HorizontalPanel(); HorizontalPanel buttonPanel = new HorizontalPanel();
buttonPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER); buttonPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER);
HTML warningLabel = new HTML(MESSAGES.barcodeWarning( HTML warningLabel = new HTML(MESSAGES.barcodeWarning(
...@@ -98,6 +99,7 @@ public class ShowBarcodeCommand extends ChainableCommand { ...@@ -98,6 +99,7 @@ public class ShowBarcodeCommand extends ChainableCommand {
buttonPanel.setSize("100%", "24px"); buttonPanel.setSize("100%", "24px");
VerticalPanel contentPanel = new VerticalPanel(); VerticalPanel contentPanel = new VerticalPanel();
contentPanel.add(barcodeQrcode); contentPanel.add(barcodeQrcode);
contentPanel.add(linkQrcode);
contentPanel.add(buttonPanel); contentPanel.add(buttonPanel);
contentPanel.add(warningPanel); contentPanel.add(warningPanel);
// contentPanel.setSize("320px", "100%"); // contentPanel.setSize("320px", "100%");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment