mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
active protected state button has darker background and is disabled
This commit is contained in:
@@ -145,8 +145,9 @@ async function saveNoteIfChanged() {
|
||||
function setNoteBackgroundIfProtected(note) {
|
||||
$noteDetailWrapper.toggleClass("protected", note.isProtected);
|
||||
$protectButton.toggleClass("active", note.isProtected);
|
||||
$protectButton.prop("disabled", note.isProtected);
|
||||
$unprotectButton.toggleClass("active", !note.isProtected);
|
||||
$unprotectButton.prop("disabled", !protectedSessionHolder.isProtectedSessionAvailable());
|
||||
$unprotectButton.prop("disabled", !note.isProtected || !protectedSessionHolder.isProtectedSessionAvailable());
|
||||
}
|
||||
|
||||
async function handleProtectedSession() {
|
||||
|
||||
Reference in New Issue
Block a user