diff --git a/src/public/javascripts/services/entrypoints.js b/src/public/javascripts/services/entrypoints.js index 9c5d9d76a..81c87ef25 100644 --- a/src/public/javascripts/services/entrypoints.js +++ b/src/public/javascripts/services/entrypoints.js @@ -43,8 +43,8 @@ function registerEntrypoints() { $("#recent-changes-button").click(recentChangesDialog.showDialog); - $("#protected-session-on").click(protectedSessionService.enterProtectedSession); - $("#protected-session-off").click(protectedSessionService.leaveProtectedSession); + $("#enter-protected-session-button").click(protectedSessionService.enterProtectedSession); + $("#leave-protected-session-button").click(protectedSessionService.leaveProtectedSession); $("#toggle-search-button").click(searchNotesService.toggleSearch); utils.bindShortcut('ctrl+s', searchNotesService.toggleSearch); diff --git a/src/public/javascripts/services/protected_session.js b/src/public/javascripts/services/protected_session.js index e4f824474..6fc70da90 100644 --- a/src/public/javascripts/services/protected_session.js +++ b/src/public/javascripts/services/protected_session.js @@ -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."); diff --git a/src/views/index.ejs b/src/views/index.ejs index 29778c77e..d4ae306e4 100644 --- a/src/views/index.ejs +++ b/src/views/index.ejs @@ -27,14 +27,17 @@ Recent changes -