small changes to linting and protected session

This commit is contained in:
azivner
2018-02-23 20:10:29 -05:00
parent 4acc5432c3
commit 19308bbfbd
2 changed files with 10 additions and 3 deletions

View File

@@ -25,7 +25,9 @@ const protected_session = (function() {
if (requireProtectedSession && !isProtectedSessionAvailable()) {
protectedSessionDeferred = dfd;
$noteDetailWrapper.hide();
if (noteTree.getCurrentNode().data.isProtected) {
$noteDetailWrapper.hide();
}
$dialog.dialog({
modal: modal,