fixed read passwords display

This commit is contained in:
antelle 2021-04-26 12:22:35 +02:00
parent e55dd47f6e
commit 00a2a95adc
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 4 additions and 2 deletions

View File

@ -262,7 +262,9 @@ const ProtocolHandlers = {
publicKey = kdbxweb.ByteUtils.base64ToBytes(publicKey);
const stats = {
connectedDate: new Date()
connectedDate: new Date(),
passwordsRead: 0,
passwordsWritten: 0
};
connectedClients.set(clientId, { connection, publicKey, version, keys, stats });

View File

@ -158,7 +158,7 @@
</div>
{{/if}}
{{/if}}
{{#if session.passwordsRead}}<p>{{res 'setBrowserSessionsPasswordsRead'}}: {{session.passwordsRead}}</p>{{/if}}
<p>{{res 'setBrowserSessionsPasswordsRead'}}: {{session.passwordsRead}}</p>
{{#if session.passwordsWritten}}<p>{{res 'setBrowserSessionsPasswordsWritten'}}: {{session.passwordsWritten}}</p>{{/if}}
<div class="settings__browser-session-buttons">
{{#if ../desktop}}