From b389ec5ea335f5bf2c874242be1fe2c244008636 Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 3 Jun 2019 20:36:37 +0200 Subject: [PATCH] enter/leave protected session button is not refreshed after entering from note detail (not dialog), fixes #555 (cherry picked from commit 0a0663be69cda302a3bfea6b084c48b8b9ba3ec3) --- src/public/javascripts/services/protected_session.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/public/javascripts/services/protected_session.js b/src/public/javascripts/services/protected_session.js index e732d9355..233d01e04 100644 --- a/src/public/javascripts/services/protected_session.js +++ b/src/public/javascripts/services/protected_session.js @@ -55,11 +55,11 @@ async function setupProtectedSession(password) { protectedSessionDeferred.resolve(true); protectedSessionDeferred = null; - - $enterProtectedSessionButton.hide(); - $leaveProtectedSessionButton.show(); } + $enterProtectedSessionButton.hide(); + $leaveProtectedSessionButton.show(); + infoService.showMessage("Protected session has been started."); }