Add alt text for link screen QR code
This commit is contained in:
parent
e32503eed4
commit
e11f11782c
3 changed files with 20 additions and 1 deletions
|
@ -1282,6 +1282,10 @@
|
||||||
"message": "Link New Device",
|
"message": "Link New Device",
|
||||||
"description": "The menu option shown in Signal iOS to add a new linked 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": {
|
"Preferences--device-name": {
|
||||||
"message": "Device name",
|
"message": "Device name",
|
||||||
"description": "The label in settings panel shown for the user-provided name for this desktop instance"
|
"description": "The label in settings panel shown for the user-provided name for this desktop instance"
|
||||||
|
|
|
@ -13693,6 +13693,13 @@
|
||||||
"reasonCategory": "usageTrusted",
|
"reasonCategory": "usageTrusted",
|
||||||
"updated": "2021-09-15T21:07:50.995Z"
|
"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(",
|
"rule": "jQuery-html(",
|
||||||
"path": "ts/views/install_view.js",
|
"path": "ts/views/install_view.js",
|
||||||
|
@ -13805,6 +13812,13 @@
|
||||||
"reasonCategory": "usageTrusted",
|
"reasonCategory": "usageTrusted",
|
||||||
"updated": "2021-09-15T21:07:50.995Z"
|
"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(",
|
"rule": "jQuery-html(",
|
||||||
"path": "ts/views/install_view.ts",
|
"path": "ts/views/install_view.ts",
|
||||||
|
@ -14274,4 +14288,4 @@
|
||||||
"reasonCategory": "usageTrusted",
|
"reasonCategory": "usageTrusted",
|
||||||
"updated": "2021-09-17T21:02:59.414Z"
|
"updated": "2021-09-17T21:02:59.414Z"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -169,6 +169,7 @@ Whisper.InstallView = Whisper.View.extend({
|
||||||
this.qr = new window.QRCode(this.$('#qr')[0]).makeCode(url);
|
this.qr = new window.QRCode(this.$('#qr')[0]).makeCode(url);
|
||||||
this.$('#qr').removeAttr('title');
|
this.$('#qr').removeAttr('title');
|
||||||
this.$('#qr').addClass('ready');
|
this.$('#qr').addClass('ready');
|
||||||
|
this.$('#qr img').attr('alt', window.i18n('LinkScreen__scan-this-code'));
|
||||||
},
|
},
|
||||||
setDeviceNameDefault() {
|
setDeviceNameDefault() {
|
||||||
const deviceName = window.textsecure.storage.user.getDeviceName();
|
const deviceName = window.textsecure.storage.user.getDeviceName();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue