diff --git a/src/components/drive/SecretLink.vue b/src/components/drive/SecretLink.vue index c9572044..3710b5a6 100644 --- a/src/components/drive/SecretLink.vue +++ b/src/components/drive/SecretLink.vue @@ -91,12 +91,16 @@
- {{ link.name }} + qr-code
-

@@ -137,7 +141,8 @@ module.exports = { autoOpen: false, currentProps: null, baseUrl:null, - href:null + href:null, + base64QrCode: "", }; }, computed: { @@ -193,7 +198,10 @@ module.exports = { args += "&args=%7B%22filename%22:%22" + link.filename + "%22%7D"; } } - return window.location.origin + "/" + this.baseUrl + args; + let href = window.location.origin + "/" + this.baseUrl + args; + let secretLinkQrCode = peergos.shared.SecretLinkQRCode.generate(href); + this.base64QrCode = secretLinkQrCode.getBase64Thumbnail(); + return href; }, showLink: function() { return this.currentProps != null; @@ -289,3 +297,8 @@ module.exports = { } } + \ No newline at end of file diff --git a/src/i18n/en-GB.js b/src/i18n/en-GB.js index 06fdd4d9..ce6b6ca3 100644 --- a/src/i18n/en-GB.js +++ b/src/i18n/en-GB.js @@ -334,7 +334,7 @@ module.exports = { "DRIVE.SHARE.COMPLETE":"Secure sharing complete", "DRIVE.LINK.OPEN":"Auto Open", "DRIVE.LINK.COPY":"Copy to clipboard", - "DRIVE.LINK.EMAIL":"Share via email", + "DRIVE.LINK.EMAIL":"via email", "DRIVE.LINK.OK":"OK", "DRIVE.LINK.UPDATE":"Update", "DRIVE.LINK.VIEWEDIT":"View/Edit",