active protected state button has darker background and is disabled

This commit is contained in:
azivner
2019-01-11 23:29:56 +01:00
parent cc27f16088
commit 3c19a712c0
3 changed files with 14 additions and 6 deletions

View File

@@ -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() {

View File

@@ -396,7 +396,7 @@ div.ui-tooltip {
}
.btn.active:not(.btn-primary) {
background-color: #ccc;
background-color: #ccc !important;
}
#note-path-list a.current {