Add alt text for link screen QR code

This commit is contained in:
Evan Hahn 2021-09-28 12:17:12 -05:00 committed by GitHub
parent e32503eed4
commit e11f11782c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 1 deletions

View File

@ -1282,6 +1282,10 @@
"message": "Link New Device",
"description": "The menu option shown in Signal iOS to add a new linked device"
},
"LinkScreen__scan-this-code": {
"message": "Scan this code in the Signal app on your phone",
"description": "Alt text for the QR code on the device link screen"
},
"Preferences--device-name": {
"message": "Device name",
"description": "The label in settings panel shown for the user-provided name for this desktop instance"

View File

@ -13693,6 +13693,13 @@
"reasonCategory": "usageTrusted",
"updated": "2021-09-15T21:07:50.995Z"
},
{
"rule": "jQuery-$(",
"path": "ts/views/install_view.js",
"line": " this.$('#qr img').attr('alt', window.i18n('LinkScreen__scan-this-code'));",
"reasonCategory": "usageTrusted",
"updated": "2021-09-28T00:13:42.086Z"
},
{
"rule": "jQuery-html(",
"path": "ts/views/install_view.js",
@ -13805,6 +13812,13 @@
"reasonCategory": "usageTrusted",
"updated": "2021-09-15T21:07:50.995Z"
},
{
"rule": "jQuery-$(",
"path": "ts/views/install_view.ts",
"line": " this.$('#qr img').attr('alt', window.i18n('LinkScreen__scan-this-code'));",
"reasonCategory": "usageTrusted",
"updated": "2021-09-28T00:13:42.086Z"
},
{
"rule": "jQuery-html(",
"path": "ts/views/install_view.ts",
@ -14274,4 +14288,4 @@
"reasonCategory": "usageTrusted",
"updated": "2021-09-17T21:02:59.414Z"
}
]
]

View File

@ -169,6 +169,7 @@ Whisper.InstallView = Whisper.View.extend({
this.qr = new window.QRCode(this.$('#qr')[0]).makeCode(url);
this.$('#qr').removeAttr('title');
this.$('#qr').addClass('ready');
this.$('#qr img').attr('alt', window.i18n('LinkScreen__scan-this-code'));
},
setDeviceNameDefault() {
const deviceName = window.textsecure.storage.user.getDeviceName();