This commit is contained in:
antelle 2020-05-05 20:50:11 +02:00
parent 02adb81ae0
commit 8350123839
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
5 changed files with 9 additions and 6 deletions

View File

@ -524,8 +524,8 @@
"setFileFormatVersion": "File format",
"saveFileExportRaw": "Exporting your passwords",
"saveFileExportRawBody": "The exported file will contain your passwords, they will not be encrypted there. Would you like to proceed?",
"setFileYubiKeyIntro": "One-time passwords from this YubiKey will be displayed in the app.",
"setFileYubiKeySettings": "Settings",
"setFileDeviceIntro": "One-time passwords from this {} will be displayed in the app.",
"setFileDeviceSettings": "Settings",
"setShTitle": "Shortcuts",
"setShShowAll": "show all items",

View File

@ -26,7 +26,8 @@ ExternalDeviceModel.defineModelProperties({
entries: undefined,
groups: undefined,
name: undefined,
shortName: undefined
shortName: undefined,
deviceClassName: undefined
});
export { ExternalDeviceModel };

View File

@ -10,6 +10,7 @@ class YubiKeyOtpModel extends ExternalOtpDeviceModel {
id: 'yubikey',
name: 'YubiKey',
shortName: 'YubiKey',
deviceClassName: 'YubiKey',
...props
});
}

View File

@ -12,7 +12,8 @@ class SettingsFileExternalView extends View {
render() {
super.render({
name: this.model.name
name: this.model.name,
deviceClassName: this.model.deviceClassName
});
}

View File

@ -1,10 +1,10 @@
<div class="settings__content">
<h1><i class="fa fa-lock settings__head-icon"></i> {{name}}</h1>
<p>{{res 'setFileYubiKeyIntro'}}</p>
<p>{{#res 'setFileDeviceIntro'}}{{deviceClassName}}{{/res}}</p>
<div class="settings__file-buttons">
<button class="settings__file-button-settings btn-silent">{{res 'setFileYubiKeySettings'}}</button>
<button class="settings__file-button-settings btn-silent">{{res 'setFileDeviceSettings'}}</button>
<button class="settings__file-button-close btn-silent">{{res 'setFileClose'}}</button>
</div>
</div>