From 2c961c988874ab32e1d2d4b9484e3c19a41a6d7c Mon Sep 17 00:00:00 2001 From: Felvesthe <23108389+Felvesthe@users.noreply.github.com> Date: Sun, 23 Nov 2025 13:45:42 +0100 Subject: [PATCH] settings: Change statistics view Signed-off-by: Felvesthe <23108389+Felvesthe@users.noreply.github.com> --- src/settings.ts | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/settings.ts b/src/settings.ts index 8391842..7b8e626 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -80,10 +80,24 @@ export class NoteLockerSettingTab extends PluginSettingTab { }); hotkeyInfo.style.fontStyle = 'italic'; - containerEl.createEl('h3', { text: 'Locked Notes & Folders' }); + containerEl.createEl('h3', { text: 'Locked Notes & Folders Statistics' }); const lockedNotesCount = this.plugin.settings.lockedNotes.size; + const lockedFoldersCount = this.plugin.settings.lockedFolders.size; + const strictLockedNotesCount = this.plugin.settings.strictLockedNotes.size; + containerEl.createEl('p', { - text: `You currently have ${lockedNotesCount} locked note${lockedNotesCount !== 1 ? 's' : ''} and ${this.plugin.settings.lockedFolders.size} locked folder${this.plugin.settings.lockedFolders.size !== 1 ? 's' : ''}.` + text: 'You currently have:' }); + containerEl + .createEl('ul') + .createEl('li', { + text: `Locked notes: ${lockedNotesCount}` + }) + .createEl('li', { + text: `Locked folders: ${lockedFoldersCount}` + }) + .createEl('li', { + text: `Strictly locked notes: ${strictLockedNotesCount}` + }); } }