on/off button for entering/leaving protected session has been changed to literal buttons

This commit is contained in:
azivner
2018-11-25 14:12:33 +01:00
parent 196e8b4380
commit 62dbd4062a
3 changed files with 16 additions and 13 deletions

View File

@@ -11,8 +11,8 @@ const $password = $("#protected-session-password");
const $noteDetailWrapper = $("#note-detail-wrapper");
const $protectButton = $("#protect-button");
const $unprotectButton = $("#unprotect-button");
const $protectedSessionOnButton = $("#protected-session-on");
const $protectedSessionOffButton = $("#protected-session-off");
const $enterProtectedSessionButton = $("#enter-protected-session-button");
const $leaveProtectedSessionButton = $("#leave-protected-session-button");
let protectedSessionDeferred = null;
@@ -77,8 +77,8 @@ async function setupProtectedSession() {
protectedSessionDeferred.resolve(true);
protectedSessionDeferred = null;
$protectedSessionOnButton.addClass('active');
$protectedSessionOffButton.removeClass('active');
$enterProtectedSessionButton.hide();
$leaveProtectedSessionButton.show();
}
infoService.showMessage("Protected session has been started.");